Interface Placement.Builder

    • Method Detail

      • availabilityZone

        Placement.Builder availabilityZone​(String availabilityZone)

        The Availability Zone of the instance.

        If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.

        This parameter is not supported for CreateFleet.

        Parameters:
        availabilityZone - The Availability Zone of the instance.

        If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.

        This parameter is not supported for CreateFleet.

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

        Placement.Builder affinity​(String affinity)

        The affinity setting for the instance on the Dedicated Host.

        This parameter is not supported for CreateFleet or ImportInstance.

        Parameters:
        affinity - The affinity setting for the instance on the Dedicated Host.

        This parameter is not supported for CreateFleet or ImportInstance.

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

        Placement.Builder groupName​(String groupName)

        The name of the placement group that the instance is in. If you specify GroupName, you can't specify GroupId.

        Parameters:
        groupName - The name of the placement group that the instance is in. If you specify GroupName, you can't specify GroupId.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • partitionNumber

        Placement.Builder partitionNumber​(Integer partitionNumber)

        The number of the partition that the instance is in. Valid only if the placement group strategy is set to partition.

        This parameter is not supported for CreateFleet.

        Parameters:
        partitionNumber - The number of the partition that the instance is in. Valid only if the placement group strategy is set to partition.

        This parameter is not supported for CreateFleet.

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

        Placement.Builder hostId​(String hostId)

        The ID of the Dedicated Host on which the instance resides.

        This parameter is not supported for CreateFleet or ImportInstance.

        Parameters:
        hostId - The ID of the Dedicated Host on which the instance resides.

        This parameter is not supported for CreateFleet or ImportInstance.

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

        Placement.Builder tenancy​(String tenancy)

        The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.

        This parameter is not supported for CreateFleet. The host tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited CPU credit option.

        Parameters:
        tenancy - The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.

        This parameter is not supported for CreateFleet. The host tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited CPU credit option.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Tenancy, Tenancy
      • tenancy

        Placement.Builder tenancy​(Tenancy tenancy)

        The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.

        This parameter is not supported for CreateFleet. The host tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited CPU credit option.

        Parameters:
        tenancy - The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.

        This parameter is not supported for CreateFleet. The host tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited CPU credit option.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Tenancy, Tenancy
      • spreadDomain

        Placement.Builder spreadDomain​(String spreadDomain)

        Reserved for future use.

        Parameters:
        spreadDomain - Reserved for future use.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hostResourceGroupArn

        Placement.Builder hostResourceGroupArn​(String hostResourceGroupArn)

        The ARN of the host resource group in which to launch the instances.

        If you specify this parameter, either omit the Tenancy parameter or set it to host.

        This parameter is not supported for CreateFleet.

        Parameters:
        hostResourceGroupArn - The ARN of the host resource group in which to launch the instances.

        If you specify this parameter, either omit the Tenancy parameter or set it to host .

        This parameter is not supported for CreateFleet.

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

        Placement.Builder groupId​(String groupId)

        The ID of the placement group that the instance is in. If you specify GroupId, you can't specify GroupName.

        Parameters:
        groupId - The ID of the placement group that the instance is in. If you specify GroupId, you can't specify GroupName.
        Returns:
        Returns a reference to this object so that method calls can be chained together.