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:
  • Constructor Details

    • SetTerminationProtectionRequest

      public SetTerminationProtectionRequest()
  • Method Details

    • 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) or withJobFlowIds(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: