Class SetTerminationProtectionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticmapreduce.model.SetTerminationProtectionRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class SetTerminationProtectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input argument to the TerminationProtection operation.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetTerminationProtectionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetTerminationProtectionRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<String>getJobFlowIds()A list of strings that uniquely identify the job flows to protect.BooleangetTerminationProtected()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.inthashCode()BooleanisTerminationProtected()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.voidsetJobFlowIds(Collection<String> jobFlowIds)A list of strings that uniquely identify the job flows to protect.voidsetTerminationProtected(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.StringtoString()Returns a string representation of this object; useful for testing and debugging.SetTerminationProtectionRequestwithJobFlowIds(String... jobFlowIds)A list of strings that uniquely identify the job flows to protect.SetTerminationProtectionRequestwithJobFlowIds(Collection<String> jobFlowIds)A list of strings that uniquely identify the job flows to protect.SetTerminationProtectionRequestwithTerminationProtected(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
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
getJobFlowIds
public List<String> getJobFlowIds()
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 .
- Returns:
- 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 .
-
setJobFlowIds
public void setJobFlowIds(Collection<String> 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 .
- Parameters:
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 .
-
withJobFlowIds
public SetTerminationProtectionRequest withJobFlowIds(String... 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 .
NOTE: This method appends the values to the existing list (if any). Use
setJobFlowIds(java.util.Collection)orwithJobFlowIds(java.util.Collection)if you want to override the existing values.- Parameters:
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 .- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withJobFlowIds
public SetTerminationProtectionRequest withJobFlowIds(Collection<String> 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 .
- Parameters:
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 .- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTerminationProtected
public 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.
- Parameters:
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.
-
getTerminationProtected
public 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.
- Returns:
- 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.
-
withTerminationProtected
public 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isTerminationProtected
public 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.
- Returns:
- 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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetTerminationProtectionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-