@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoTerminationPolicy extends Object implements Serializable, Cloneable, StructuredPojo
An auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see Control cluster termination.
Constructor and Description |
---|
AutoTerminationPolicy() |
Modifier and Type | Method and Description |
---|---|
AutoTerminationPolicy |
clone() |
boolean |
equals(Object obj) |
Long |
getIdleTimeout()
Specifies the amount of idle time in seconds after which the cluster automatically terminates.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIdleTimeout(Long idleTimeout)
Specifies the amount of idle time in seconds after which the cluster automatically terminates.
|
String |
toString()
Returns a string representation of this object.
|
AutoTerminationPolicy |
withIdleTimeout(Long idleTimeout)
Specifies the amount of idle time in seconds after which the cluster automatically terminates.
|
public void setIdleTimeout(Long idleTimeout)
Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).
idleTimeout
- Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can
specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).public Long getIdleTimeout()
Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).
public AutoTerminationPolicy withIdleTimeout(Long idleTimeout)
Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).
idleTimeout
- Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can
specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).public String toString()
toString
in class Object
Object.toString()
public AutoTerminationPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.