Interface InstanceGroupModifyConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceGroupModifyConfig.Builder,
,InstanceGroupModifyConfig> SdkBuilder<InstanceGroupModifyConfig.Builder,
,InstanceGroupModifyConfig> SdkPojo
- Enclosing class:
InstanceGroupModifyConfig
-
Method Summary
Modifier and TypeMethodDescriptionconfigurations
(Collection<Configuration> configurations) A list of new or modified configurations to apply for an instance group.configurations
(Consumer<Configuration.Builder>... configurations) A list of new or modified configurations to apply for an instance group.configurations
(Configuration... configurations) A list of new or modified configurations to apply for an instance group.ec2InstanceIdsToTerminate
(String... ec2InstanceIdsToTerminate) The Amazon EC2 InstanceIds to terminate.ec2InstanceIdsToTerminate
(Collection<String> ec2InstanceIdsToTerminate) The Amazon EC2 InstanceIds to terminate.instanceCount
(Integer instanceCount) Target size for the instance group.instanceGroupId
(String instanceGroupId) Unique ID of the instance group to modify.reconfigurationType
(String reconfigurationType) Type of reconfiguration requested.reconfigurationType
(ReconfigurationType reconfigurationType) Type of reconfiguration requested.shrinkPolicy
(Consumer<ShrinkPolicy.Builder> shrinkPolicy) Policy for customizing shrink operations.shrinkPolicy
(ShrinkPolicy shrinkPolicy) Policy for customizing shrink operations.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
instanceGroupId
Unique ID of the instance group to modify.
- Parameters:
instanceGroupId
- Unique ID of the instance group to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
Target size for the instance group.
- Parameters:
instanceCount
- Target size for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2InstanceIdsToTerminate
InstanceGroupModifyConfig.Builder ec2InstanceIdsToTerminate(Collection<String> ec2InstanceIdsToTerminate) The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
- Parameters:
ec2InstanceIdsToTerminate
- The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2InstanceIdsToTerminate
The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
- Parameters:
ec2InstanceIdsToTerminate
- The Amazon EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shrinkPolicy
Policy for customizing shrink operations.
- Parameters:
shrinkPolicy
- Policy for customizing shrink operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shrinkPolicy
Policy for customizing shrink operations.
This is a convenience method that creates an instance of theShrinkPolicy.Builder
avoiding the need to create one manually viaShrinkPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toshrinkPolicy(ShrinkPolicy)
.- Parameters:
shrinkPolicy
- a consumer that will call methods onShrinkPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reconfigurationType
Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.
- Parameters:
reconfigurationType
- Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reconfigurationType
Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.
- Parameters:
reconfigurationType
- Type of reconfiguration requested. Valid values are MERGE and OVERWRITE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
configurations
A list of new or modified configurations to apply for an instance group.
- Parameters:
configurations
- A list of new or modified configurations to apply for an instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
A list of new or modified configurations to apply for an instance group.
- Parameters:
configurations
- A list of new or modified configurations to apply for an instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
A list of new or modified configurations to apply for an instance group.
This is a convenience method that creates an instance of theConfiguration.Builder
avoiding the need to create one manually viaConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfigurations(List<Configuration>)
.- Parameters:
configurations
- a consumer that will call methods onConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-