public static interface InstanceGroupModifyConfig.Builder extends CopyableBuilder<InstanceGroupModifyConfig.Builder,InstanceGroupModifyConfig>
Modifier and Type | Method and Description |
---|---|
InstanceGroupModifyConfig.Builder |
ec2InstanceIdsToTerminate(Collection<String> ec2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate.
|
InstanceGroupModifyConfig.Builder |
ec2InstanceIdsToTerminate(String... ec2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate.
|
InstanceGroupModifyConfig.Builder |
instanceCount(Integer instanceCount)
Target size for the instance group.
|
InstanceGroupModifyConfig.Builder |
instanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.
|
default InstanceGroupModifyConfig.Builder |
shrinkPolicy(Consumer<ShrinkPolicy.Builder> shrinkPolicy)
Policy for customizing shrink operations.
|
InstanceGroupModifyConfig.Builder |
shrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
|
copy
applyMutation, build
InstanceGroupModifyConfig.Builder instanceGroupId(String instanceGroupId)
Unique ID of the instance group to expand or shrink.
instanceGroupId
- Unique ID of the instance group to expand or shrink.InstanceGroupModifyConfig.Builder instanceCount(Integer instanceCount)
Target size for the instance group.
instanceCount
- Target size for the instance group.InstanceGroupModifyConfig.Builder ec2InstanceIdsToTerminate(Collection<String> ec2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
ec2InstanceIdsToTerminate
- The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not
return to its original requested size.InstanceGroupModifyConfig.Builder ec2InstanceIdsToTerminate(String... ec2InstanceIdsToTerminate)
The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
ec2InstanceIdsToTerminate
- The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not
return to its original requested size.InstanceGroupModifyConfig.Builder shrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
shrinkPolicy
- Policy for customizing shrink operations.default InstanceGroupModifyConfig.Builder shrinkPolicy(Consumer<ShrinkPolicy.Builder> shrinkPolicy)
Policy for customizing shrink operations.
This is a convenience that creates an instance of theShrinkPolicy.Builder
avoiding the need to
create one manually via ShrinkPolicy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to shrinkPolicy(ShrinkPolicy)
.shrinkPolicy
- a consumer that will call methods on ShrinkPolicy.Builder
shrinkPolicy(ShrinkPolicy)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.