|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticmapreduce.model.SetTerminationProtectionRequest
public class SetTerminationProtectionRequest
Container for the parameters to the SetTerminationProtection operation
.
SetTerminationProtection locks a job flow so the Amazon EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a job flow is analogous to calling the Amazon EC2 DisableAPITermination API on all of the EC2 instances in a cluster.
SetTerminationProtection is used to prevent accidental termination of a job flow and to ensure that in the event of an error, the instances will persist so you can recover any data stored in their ephemeral instance storage.
To terminate a job flow that has been locked by setting SetTerminationProtection to true
,
you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false
.
For more information, go to Protecting a Job Flow from Termination in the Amazon Elastic MapReduce Developer's Guide.
AmazonElasticMapReduce.setTerminationProtection(SetTerminationProtectionRequest)
,
Serialized FormConstructor Summary | |
---|---|
SetTerminationProtectionRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<String> |
getJobFlowIds()
A list of strings that uniquely identify the job flows to protect. |
Boolean |
getTerminationProtected()
A Boolean that indicates whether to protect the job flow and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error. |
int |
hashCode()
|
Boolean |
isTerminationProtected()
A Boolean that indicates whether to protect the job flow and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error. |
void |
setJobFlowIds(Collection<String> jobFlowIds)
A list of strings that uniquely identify the job flows to protect. |
void |
setTerminationProtected(Boolean terminationProtected)
A Boolean that indicates whether to protect the job flow and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SetTerminationProtectionRequest |
withJobFlowIds(Collection<String> jobFlowIds)
A list of strings that uniquely identify the job flows to protect. |
SetTerminationProtectionRequest |
withJobFlowIds(String... jobFlowIds)
A list of strings that uniquely identify the job flows to protect. |
SetTerminationProtectionRequest |
withTerminationProtected(Boolean terminationProtected)
A Boolean that indicates whether to protect the job flow and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetTerminationProtectionRequest()
Method Detail |
---|
public List<String> getJobFlowIds()
public void setJobFlowIds(Collection<String> jobFlowIds)
jobFlowIds
- A list of strings that uniquely identify the job flows to protect.
This identifier is returned by RunJobFlow and can also be
obtained from DescribeJobFlows .public SetTerminationProtectionRequest withJobFlowIds(String... jobFlowIds)
Returns a reference to this object so that method calls can be chained together.
jobFlowIds
- A list of strings that uniquely identify the job flows to protect.
This identifier is returned by RunJobFlow and can also be
obtained from DescribeJobFlows .
public SetTerminationProtectionRequest withJobFlowIds(Collection<String> jobFlowIds)
Returns a reference to this object so that method calls can be chained together.
jobFlowIds
- A list of strings that uniquely identify the job flows to protect.
This identifier is returned by RunJobFlow and can also be
obtained from DescribeJobFlows .
public Boolean isTerminationProtected()
public void setTerminationProtected(Boolean terminationProtected)
terminationProtected
- A Boolean that indicates whether to protect the job flow and prevent
the Amazon EC2 instances in the cluster from shutting down due to API
calls, user intervention, or job-flow error.public SetTerminationProtectionRequest withTerminationProtected(Boolean terminationProtected)
Returns a reference to this object so that method calls can be chained together.
terminationProtected
- A Boolean that indicates whether to protect the job flow and prevent
the Amazon EC2 instances in the cluster from shutting down due to API
calls, user intervention, or job-flow error.
public Boolean getTerminationProtected()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |