public class SetTerminationProtectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input argument to the TerminationProtection operation.
NOOP
Constructor and Description |
---|
SetTerminationProtectionRequest() |
Modifier and Type | Method and Description |
---|---|
SetTerminationProtectionRequest |
clone() |
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.
|
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
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 .
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 .
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)
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)
or
withJobFlowIds(java.util.Collection)
if you want to override the
existing values.
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)
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 .
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 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.
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()
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)
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.
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 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.
public String toString()
toString
in class Object
Object.toString()
public SetTerminationProtectionRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.