Interface SpotPlacement.Builder

    • Method Detail

      • availabilityZone

        SpotPlacement.Builder availabilityZone​(String availabilityZone)

        The Availability Zone. For example, us-east-2a.

        [Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, " us-east-2a, us-east-2b".

        Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

        Parameters:
        availabilityZone - The Availability Zone. For example, us-east-2a.

        [Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, " us-east-2a, us-east-2b".

        Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • groupName

        SpotPlacement.Builder groupName​(String groupName)

        The name of the placement group.

        Parameters:
        groupName - The name of the placement group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tenancy

        SpotPlacement.Builder tenancy​(String tenancy)

        The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.

        Parameters:
        tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Tenancy, Tenancy
      • tenancy

        SpotPlacement.Builder tenancy​(Tenancy tenancy)

        The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.

        Parameters:
        tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Tenancy, Tenancy
      • availabilityZoneId

        SpotPlacement.Builder availabilityZoneId​(String availabilityZoneId)

        The ID of the Availability Zone. For example, use2-az1.

        [Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, " use2-az1, use2-bz1".

        Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

        Parameters:
        availabilityZoneId - The ID of the Availability Zone. For example, use2-az1.

        [Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, " use2-az1, use2-bz1".

        Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

        Returns:
        Returns a reference to this object so that method calls can be chained together.