@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ShrinkPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Policy for customizing shrink operations. Allows configuration of decommissioning timeout and targeted instance shrinking.
Constructor and Description |
---|
ShrinkPolicy() |
Modifier and Type | Method and Description |
---|---|
ShrinkPolicy |
clone() |
boolean |
equals(Object obj) |
Integer |
getDecommissionTimeout()
The desired timeout for decommissioning an instance.
|
InstanceResizePolicy |
getInstanceResizePolicy()
Custom policy for requesting termination protection or termination of specific instances when shrinking an
instance group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDecommissionTimeout(Integer decommissionTimeout)
The desired timeout for decommissioning an instance.
|
void |
setInstanceResizePolicy(InstanceResizePolicy instanceResizePolicy)
Custom policy for requesting termination protection or termination of specific instances when shrinking an
instance group.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ShrinkPolicy |
withDecommissionTimeout(Integer decommissionTimeout)
The desired timeout for decommissioning an instance.
|
ShrinkPolicy |
withInstanceResizePolicy(InstanceResizePolicy instanceResizePolicy)
Custom policy for requesting termination protection or termination of specific instances when shrinking an
instance group.
|
public void setDecommissionTimeout(Integer decommissionTimeout)
The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.
decommissionTimeout
- The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.public Integer getDecommissionTimeout()
The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.
public ShrinkPolicy withDecommissionTimeout(Integer decommissionTimeout)
The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.
decommissionTimeout
- The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.public void setInstanceResizePolicy(InstanceResizePolicy instanceResizePolicy)
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
instanceResizePolicy
- Custom policy for requesting termination protection or termination of specific instances when shrinking an
instance group.public InstanceResizePolicy getInstanceResizePolicy()
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
public ShrinkPolicy withInstanceResizePolicy(InstanceResizePolicy instanceResizePolicy)
Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
instanceResizePolicy
- Custom policy for requesting termination protection or termination of specific instances when shrinking an
instance group.public String toString()
toString
in class Object
Object.toString()
public ShrinkPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.