com.amazonaws.services.elasticmapreduce.model

## クラス SetTerminationProtectionRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.elasticmapreduce.model.SetTerminationProtectionRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class SetTerminationProtectionRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `SetTerminationProtection operation`.

  SetTerminationProtection locks a job flow so the Amazon EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a job flow is analogous to calling the Amazon EC2 DisableAPITermination API on all of the EC2 instances in a cluster.

  SetTerminationProtection is used to prevent accidental termination of a job flow and to ensure that in the event of an error, the instances will persist so you can recover any data stored in their ephemeral instance storage.

  To terminate a job flow that has been locked by setting SetTerminationProtection to `true` , you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to `false` .

  For more information, go to Protecting a Job Flow from Termination in the Amazon Elastic MapReduce Developer's Guide.

  関連項目:
    `AmazonElasticMapReduce.setTerminationProtection(SetTerminationProtectionRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `SetTerminationProtectionRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### SetTerminationProtectionRequest

          public SetTerminationProtectionRequest()

  - ### メソッドの詳細

    - #### getJobFlowIds

          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 .
      戻り値:
        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(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 .

    - #### withJobFlowIds

          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 .

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `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(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 .

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `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 .

    - #### isTerminationProtected

          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.
      戻り値:
        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.

    - #### setTerminationProtected

          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.

    - #### withTerminationProtected

          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.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `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 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.
      戻り値:
        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 java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`