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 SetTerminationProtectionRequest
clone()
Creates a shallow clone of this request.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(String... jobFlowIds)
A list of strings that uniquely identify the job flows to protect.SetTerminationProtectionRequest
withJobFlowIds(Collection<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
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetTerminationProtectionRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-