Interface ModifyInstancePlacementRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<ModifyInstancePlacementRequest.Builder,,- ModifyInstancePlacementRequest> - Ec2Request.Builder,- SdkBuilder<ModifyInstancePlacementRequest.Builder,,- ModifyInstancePlacementRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- ModifyInstancePlacementRequest
- 
Method SummaryModifier and TypeMethodDescriptionThe affinity setting for the instance.The affinity setting for the instance.The Group Id of a placement group.The name of the placement group in which to place the instance.The ID of the Dedicated Host with which to associate the instance.hostResourceGroupArn(String hostResourceGroupArn) The ARN of the host resource group in which to place the instance.instanceId(String instanceId) The ID of the instance that you are modifying.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.partitionNumber(Integer partitionNumber) The number of the partition in which to place the instance.The tenancy for the instance.tenancy(HostTenancy tenancy) The tenancy for the instance.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
groupNameThe name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of default. For cluster and partition placement groups, the instance must have a tenancy ofdefaultordedicated.To remove an instance from a placement group, specify an empty string (""). - Parameters:
- groupName- The name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of- default. For cluster and partition placement groups, the instance must have a tenancy of- defaultor- dedicated.- To remove an instance from a placement group, specify an empty string (""). 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
partitionNumberThe number of the partition in which to place the instance. Valid only if the placement group strategy is set to partition.- Parameters:
- partitionNumber- The number of the partition in which to place the instance. Valid only if the placement group strategy is set to- partition.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hostResourceGroupArnThe ARN of the host resource group in which to place the instance. The instance must have a tenancy of hostto specify this parameter.- Parameters:
- hostResourceGroupArn- The ARN of the host resource group in which to place the instance. The instance must have a tenancy of- hostto specify this parameter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
groupIdThe Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group. - Parameters:
- groupId- The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
instanceIdThe ID of the instance that you are modifying. - Parameters:
- instanceId- The ID of the instance that you are modifying.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tenancyThe tenancy for the instance. For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of host. You can't change the tenancy fromhosttodedicatedordefault. Attempting to make one of these unsupported tenancy changes results in anInvalidRequesterror code.- Parameters:
- tenancy- The tenancy for the instance.- For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of - host. You can't change the tenancy from- hostto- dedicatedor- default. Attempting to make one of these unsupported tenancy changes results in an- InvalidRequesterror code.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
tenancyThe tenancy for the instance. For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of host. You can't change the tenancy fromhosttodedicatedordefault. Attempting to make one of these unsupported tenancy changes results in anInvalidRequesterror code.- Parameters:
- tenancy- The tenancy for the instance.- For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of - host. You can't change the tenancy from- hostto- dedicatedor- default. Attempting to make one of these unsupported tenancy changes results in an- InvalidRequesterror code.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
affinityThe affinity setting for the instance. For more information, see Host affinity in the Amazon EC2 User Guide. - Parameters:
- affinity- The affinity setting for the instance. For more information, see Host affinity in the Amazon EC2 User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
affinityThe affinity setting for the instance. For more information, see Host affinity in the Amazon EC2 User Guide. - Parameters:
- affinity- The affinity setting for the instance. For more information, see Host affinity in the Amazon EC2 User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
hostIdThe ID of the Dedicated Host with which to associate the instance. - Parameters:
- hostId- The ID of the Dedicated Host with which to associate the instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
overrideConfigurationModifyInstancePlacementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationModifyInstancePlacementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-