@Generated(value="software.amazon.awssdk:codegen") public class InstanceResizePolicy extends Object implements StructuredPojo, ToCopyableBuilder<InstanceResizePolicy.Builder,InstanceResizePolicy>
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
Modifier and Type | Class and Description |
---|---|
static interface |
InstanceResizePolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static InstanceResizePolicy.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<String> |
instancesToProtect()
Specific list of instances to be protected when shrinking an instance group.
|
List<String> |
instancesToTerminate()
Specific list of instances to be terminated when shrinking an instance group.
|
Integer |
instanceTerminationTimeout()
Decommissioning timeout override for the specific list of instances to be terminated.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends InstanceResizePolicy.Builder> |
serializableBuilderClass() |
InstanceResizePolicy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public List<String> instancesToTerminate()
Specific list of instances to be terminated when shrinking an instance group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> instancesToProtect()
Specific list of instances to be protected when shrinking an instance group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Integer instanceTerminationTimeout()
Decommissioning timeout override for the specific list of instances to be terminated.
public InstanceResizePolicy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InstanceResizePolicy.Builder,InstanceResizePolicy>
public static InstanceResizePolicy.Builder builder()
public static Class<? extends InstanceResizePolicy.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.