@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceResizePolicy extends Object implements Serializable, Cloneable, StructuredPojo
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
Constructor and Description |
---|
InstanceResizePolicy() |
Modifier and Type | Method and Description |
---|---|
InstanceResizePolicy |
clone() |
boolean |
equals(Object obj) |
List<String> |
getInstancesToProtect()
Specific list of instances to be protected when shrinking an instance group.
|
List<String> |
getInstancesToTerminate()
Specific list of instances to be terminated when shrinking an instance group.
|
Integer |
getInstanceTerminationTimeout()
Decommissioning timeout override for the specific list of instances to be terminated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setInstancesToProtect(Collection<String> instancesToProtect)
Specific list of instances to be protected when shrinking an instance group.
|
void |
setInstancesToTerminate(Collection<String> instancesToTerminate)
Specific list of instances to be terminated when shrinking an instance group.
|
void |
setInstanceTerminationTimeout(Integer instanceTerminationTimeout)
Decommissioning timeout override for the specific list of instances to be terminated.
|
String |
toString()
Returns a string representation of this object.
|
InstanceResizePolicy |
withInstancesToProtect(Collection<String> instancesToProtect)
Specific list of instances to be protected when shrinking an instance group.
|
InstanceResizePolicy |
withInstancesToProtect(String... instancesToProtect)
Specific list of instances to be protected when shrinking an instance group.
|
InstanceResizePolicy |
withInstancesToTerminate(Collection<String> instancesToTerminate)
Specific list of instances to be terminated when shrinking an instance group.
|
InstanceResizePolicy |
withInstancesToTerminate(String... instancesToTerminate)
Specific list of instances to be terminated when shrinking an instance group.
|
InstanceResizePolicy |
withInstanceTerminationTimeout(Integer instanceTerminationTimeout)
Decommissioning timeout override for the specific list of instances to be terminated.
|
public List<String> getInstancesToTerminate()
Specific list of instances to be terminated when shrinking an instance group.
public void setInstancesToTerminate(Collection<String> instancesToTerminate)
Specific list of instances to be terminated when shrinking an instance group.
instancesToTerminate
- Specific list of instances to be terminated when shrinking an instance group.public InstanceResizePolicy withInstancesToTerminate(String... instancesToTerminate)
Specific list of instances to be terminated when shrinking an instance group.
NOTE: This method appends the values to the existing list (if any). Use
setInstancesToTerminate(java.util.Collection)
or withInstancesToTerminate(java.util.Collection)
if you want to override the existing values.
instancesToTerminate
- Specific list of instances to be terminated when shrinking an instance group.public InstanceResizePolicy withInstancesToTerminate(Collection<String> instancesToTerminate)
Specific list of instances to be terminated when shrinking an instance group.
instancesToTerminate
- Specific list of instances to be terminated when shrinking an instance group.public List<String> getInstancesToProtect()
Specific list of instances to be protected when shrinking an instance group.
public void setInstancesToProtect(Collection<String> instancesToProtect)
Specific list of instances to be protected when shrinking an instance group.
instancesToProtect
- Specific list of instances to be protected when shrinking an instance group.public InstanceResizePolicy withInstancesToProtect(String... instancesToProtect)
Specific list of instances to be protected when shrinking an instance group.
NOTE: This method appends the values to the existing list (if any). Use
setInstancesToProtect(java.util.Collection)
or withInstancesToProtect(java.util.Collection)
if
you want to override the existing values.
instancesToProtect
- Specific list of instances to be protected when shrinking an instance group.public InstanceResizePolicy withInstancesToProtect(Collection<String> instancesToProtect)
Specific list of instances to be protected when shrinking an instance group.
instancesToProtect
- Specific list of instances to be protected when shrinking an instance group.public void setInstanceTerminationTimeout(Integer instanceTerminationTimeout)
Decommissioning timeout override for the specific list of instances to be terminated.
instanceTerminationTimeout
- Decommissioning timeout override for the specific list of instances to be terminated.public Integer getInstanceTerminationTimeout()
Decommissioning timeout override for the specific list of instances to be terminated.
public InstanceResizePolicy withInstanceTerminationTimeout(Integer instanceTerminationTimeout)
Decommissioning timeout override for the specific list of instances to be terminated.
instanceTerminationTimeout
- Decommissioning timeout override for the specific list of instances to be terminated.public String toString()
toString
in class Object
Object.toString()
public InstanceResizePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.