Class InstanceGroupModifyConfig
- All Implemented Interfaces:
Serializable,Cloneable
Modify an instance group size.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for InstanceGroupModifyConfig object.InstanceGroupModifyConfig(String instanceGroupId, Integer instanceCount) Constructs a new InstanceGroupModifyConfig object. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe EC2 InstanceIds to terminate.Target size for the instance group.Unique ID of the instance group to expand or shrink.Policy for customizing shrink operations.inthashCode()voidsetEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate) The EC2 InstanceIds to terminate.voidsetInstanceCount(Integer instanceCount) Target size for the instance group.voidsetInstanceGroupId(String instanceGroupId) Unique ID of the instance group to expand or shrink.voidsetShrinkPolicy(ShrinkPolicy shrinkPolicy) Policy for customizing shrink operations.toString()Returns a string representation of this object; useful for testing and debugging.withEC2InstanceIdsToTerminate(String... eC2InstanceIdsToTerminate) The EC2 InstanceIds to terminate.withEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate) The EC2 InstanceIds to terminate.withInstanceCount(Integer instanceCount) Target size for the instance group.withInstanceGroupId(String instanceGroupId) Unique ID of the instance group to expand or shrink.withShrinkPolicy(ShrinkPolicy shrinkPolicy) Policy for customizing shrink operations.
-
Constructor Details
-
InstanceGroupModifyConfig
public InstanceGroupModifyConfig()Default constructor for InstanceGroupModifyConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
InstanceGroupModifyConfig
Constructs a new InstanceGroupModifyConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
instanceGroupId- Unique ID of the instance group to expand or shrink.instanceCount- Target size for the instance group.
-
-
Method Details
-
setInstanceGroupId
Unique ID of the instance group to expand or shrink.
- Parameters:
instanceGroupId- Unique ID of the instance group to expand or shrink.
-
getInstanceGroupId
Unique ID of the instance group to expand or shrink.
- Returns:
- Unique ID of the instance group to expand or shrink.
-
withInstanceGroupId
Unique ID of the instance group to expand or shrink.
- Parameters:
instanceGroupId- Unique ID of the instance group to expand or shrink.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
Target size for the instance group.
- Parameters:
instanceCount- Target size for the instance group.
-
getInstanceCount
Target size for the instance group.
- Returns:
- Target size for the instance group.
-
withInstanceCount
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.
-
getEC2InstanceIdsToTerminate
The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
- Returns:
- The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
-
setEC2InstanceIdsToTerminate
The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
- Parameters:
eC2InstanceIdsToTerminate- The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
-
withEC2InstanceIdsToTerminate
The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
NOTE: This method appends the values to the existing list (if any). Use
setEC2InstanceIdsToTerminate(java.util.Collection)orwithEC2InstanceIdsToTerminate(java.util.Collection)if you want to override the existing values.- Parameters:
eC2InstanceIdsToTerminate- The EC2 InstanceIds to terminate. Once 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.
-
withEC2InstanceIdsToTerminate
public InstanceGroupModifyConfig withEC2InstanceIdsToTerminate(Collection<String> eC2InstanceIdsToTerminate) The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
- Parameters:
eC2InstanceIdsToTerminate- The EC2 InstanceIds to terminate. Once 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.
-
setShrinkPolicy
Policy for customizing shrink operations.
- Parameters:
shrinkPolicy- Policy for customizing shrink operations.
-
getShrinkPolicy
Policy for customizing shrink operations.
- Returns:
- Policy for customizing shrink operations.
-
withShrinkPolicy
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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-