public class SetTerminationProtectionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
The input argument to the TerminationProtection operation.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
jobFlowIds
A list of strings that uniquely identify the job flows to protect.
|
private java.lang.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.
|
NOOP
Constructor and Description |
---|
SetTerminationProtectionRequest() |
Modifier and Type | Method and Description |
---|---|
SetTerminationProtectionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getJobFlowIds()
A list of strings that uniquely identify the job flows to protect.
|
java.lang.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() |
java.lang.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(java.util.Collection<java.lang.String> jobFlowIds)
A list of strings that uniquely identify the job flows to protect.
|
void |
setTerminationProtected(java.lang.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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetTerminationProtectionRequest |
withJobFlowIds(java.util.Collection<java.lang.String> jobFlowIds)
A list of strings that uniquely identify the job flows to protect.
|
SetTerminationProtectionRequest |
withJobFlowIds(java.lang.String... jobFlowIds)
A list of strings that uniquely identify the job flows to protect.
|
SetTerminationProtectionRequest |
withTerminationProtected(java.lang.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
private SdkInternalList<java.lang.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 .
private java.lang.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.
public java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetTerminationProtectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()