com.amazonaws.services.elasticmapreduce.model

## クラス JobFlowInstancesConfig

- java.lang.Object
- - com.amazonaws.services.elasticmapreduce.model.JobFlowInstancesConfig

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

      public class JobFlowInstancesConfig
      extends java.lang.Object
      implements java.io.Serializable

  A description of the Amazon EC2 instance running the job flow.

  関連項目:
    直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `JobFlowInstancesConfig()` Default constructor for a new JobFlowInstancesConfig object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getEc2KeyName()` Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."
    `java.lang.String` | `getEc2SubnetId()` To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch.
    `java.lang.String` | `getHadoopVersion()` Specifies the Hadoop version for the job flow.
    `java.lang.Integer` | `getInstanceCount()` The number of Amazon EC2 instances used to execute the job flow.
    `java.util.List<InstanceGroupConfig>` | `getInstanceGroups()` Configuration for the job flow's instance groups.
    `java.lang.Boolean` | `getKeepJobFlowAliveWhenNoSteps()` Specifies whether the job flow should terminate after completing all steps.
    `java.lang.String` | `getMasterInstanceType()` The EC2 instance type of the master node.
    `PlacementType` | `getPlacement()` Specifies the Availability Zone the job flow will run in.
    `java.lang.String` | `getSlaveInstanceType()` The EC2 instance type of the slave nodes.
    `java.lang.Boolean` | `getTerminationProtected()` Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isKeepJobFlowAliveWhenNoSteps()` Specifies whether the job flow should terminate after completing all steps.
    `java.lang.Boolean` | `isTerminationProtected()` Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.
    `void` | `setEc2KeyName(java.lang.String ec2KeyName)` Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."
    `void` | `setEc2SubnetId(java.lang.String ec2SubnetId)` To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch.
    `void` | `setHadoopVersion(java.lang.String hadoopVersion)` Specifies the Hadoop version for the job flow.
    `void` | `setInstanceCount(java.lang.Integer instanceCount)` The number of Amazon EC2 instances used to execute the job flow.
    `void` | `setInstanceGroups(java.util.Collection<InstanceGroupConfig> instanceGroups)` Configuration for the job flow's instance groups.
    `void` | `setKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)` Specifies whether the job flow should terminate after completing all steps.
    `void` | `setMasterInstanceType(java.lang.String masterInstanceType)` The EC2 instance type of the master node.
    `void` | `setPlacement(PlacementType placement)` Specifies the Availability Zone the job flow will run in.
    `void` | `setSlaveInstanceType(java.lang.String slaveInstanceType)` The EC2 instance type of the slave nodes.
    `void` | `setTerminationProtected(java.lang.Boolean terminationProtected)` Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `JobFlowInstancesConfig` | `withEc2KeyName(java.lang.String ec2KeyName)` Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."
    `JobFlowInstancesConfig` | `withEc2SubnetId(java.lang.String ec2SubnetId)` To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch.
    `JobFlowInstancesConfig` | `withHadoopVersion(java.lang.String hadoopVersion)` Specifies the Hadoop version for the job flow.
    `JobFlowInstancesConfig` | `withInstanceCount(java.lang.Integer instanceCount)` The number of Amazon EC2 instances used to execute the job flow.
    `JobFlowInstancesConfig` | `withInstanceGroups(java.util.Collection<InstanceGroupConfig> instanceGroups)` Configuration for the job flow's instance groups.
    `JobFlowInstancesConfig` | `withInstanceGroups(InstanceGroupConfig... instanceGroups)` Configuration for the job flow's instance groups.
    `JobFlowInstancesConfig` | `withKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)` Specifies whether the job flow should terminate after completing all steps.
    `JobFlowInstancesConfig` | `withMasterInstanceType(java.lang.String masterInstanceType)` The EC2 instance type of the master node.
    `JobFlowInstancesConfig` | `withPlacement(PlacementType placement)` Specifies the Availability Zone the job flow will run in.
    `JobFlowInstancesConfig` | `withSlaveInstanceType(java.lang.String slaveInstanceType)` The EC2 instance type of the slave nodes.
    `JobFlowInstancesConfig` | `withTerminationProtected(java.lang.Boolean terminationProtected)` Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.

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

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

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

    - #### JobFlowInstancesConfig

          public JobFlowInstancesConfig()

      Default constructor for a new JobFlowInstancesConfig object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

  - ### メソッドの詳細

    - #### getMasterInstanceType

          public java.lang.String getMasterInstanceType()

      The EC2 instance type of the master node.

      Constraints:
      Length: 1 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        The EC2 instance type of the master node.

    - #### setMasterInstanceType

          public void setMasterInstanceType(java.lang.String masterInstanceType)

      The EC2 instance type of the master node.

      Constraints:
      Length: 1 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `masterInstanceType` - The EC2 instance type of the master node.

    - #### withMasterInstanceType

          public JobFlowInstancesConfig withMasterInstanceType(java.lang.String masterInstanceType)

      The EC2 instance type of the master node.

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

      Constraints:
      Length: 1 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `masterInstanceType` - The EC2 instance type of the master node.

    - #### getSlaveInstanceType

          public java.lang.String getSlaveInstanceType()

      The EC2 instance type of the slave nodes.

      Constraints:
      Length: 1 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        The EC2 instance type of the slave nodes.

    - #### setSlaveInstanceType

          public void setSlaveInstanceType(java.lang.String slaveInstanceType)

      The EC2 instance type of the slave nodes.

      Constraints:
      Length: 1 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `slaveInstanceType` - The EC2 instance type of the slave nodes.

    - #### withSlaveInstanceType

          public JobFlowInstancesConfig withSlaveInstanceType(java.lang.String slaveInstanceType)

      The EC2 instance type of the slave nodes.

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

      Constraints:
      Length: 1 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `slaveInstanceType` - The EC2 instance type of the slave nodes.

    - #### getInstanceCount

          public java.lang.Integer getInstanceCount()

      The number of Amazon EC2 instances used to execute the job flow.
      戻り値:
        The number of Amazon EC2 instances used to execute the job flow.

    - #### setInstanceCount

          public void setInstanceCount(java.lang.Integer instanceCount)

      The number of Amazon EC2 instances used to execute the job flow.
      パラメータ:
        `instanceCount` - The number of Amazon EC2 instances used to execute the job flow.

    - #### withInstanceCount

          public JobFlowInstancesConfig withInstanceCount(java.lang.Integer instanceCount)

      The number of Amazon EC2 instances used to execute the job flow.

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

      パラメータ:
        `instanceCount` - The number of Amazon EC2 instances used to execute the job flow.

    - #### getInstanceGroups

          public java.util.List<InstanceGroupConfig> getInstanceGroups()

      Configuration for the job flow's instance groups.
      戻り値:
        Configuration for the job flow's instance groups.

    - #### setInstanceGroups

          public void setInstanceGroups(java.util.Collection<InstanceGroupConfig> instanceGroups)

      Configuration for the job flow's instance groups.
      パラメータ:
        `instanceGroups` - Configuration for the job flow's instance groups.

    - #### withInstanceGroups

          public JobFlowInstancesConfig withInstanceGroups(InstanceGroupConfig... instanceGroups)

      Configuration for the job flow's instance groups.

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

      パラメータ:
        `instanceGroups` - Configuration for the job flow's instance groups.

    - #### withInstanceGroups

          public JobFlowInstancesConfig withInstanceGroups(java.util.Collection<InstanceGroupConfig> instanceGroups)

      Configuration for the job flow's instance groups.

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

      パラメータ:
        `instanceGroups` - Configuration for the job flow's instance groups.

    - #### getEc2KeyName

          public java.lang.String getEc2KeyName()

      Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."

    - #### setEc2KeyName

          public void setEc2KeyName(java.lang.String ec2KeyName)

      Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `ec2KeyName` - Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."

    - #### withEc2KeyName

          public JobFlowInstancesConfig withEc2KeyName(java.lang.String ec2KeyName)

      Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."

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

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `ec2KeyName` - Specifies the name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called "hadoop."

    - #### getPlacement

          public PlacementType getPlacement()

      Specifies the Availability Zone the job flow will run in.
      戻り値:
        Specifies the Availability Zone the job flow will run in.

    - #### setPlacement

          public void setPlacement(PlacementType placement)

      Specifies the Availability Zone the job flow will run in.
      パラメータ:
        `placement` - Specifies the Availability Zone the job flow will run in.

    - #### withPlacement

          public JobFlowInstancesConfig withPlacement(PlacementType placement)

      Specifies the Availability Zone the job flow will run in.

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

      パラメータ:
        `placement` - Specifies the Availability Zone the job flow will run in.

    - #### isKeepJobFlowAliveWhenNoSteps

          public java.lang.Boolean isKeepJobFlowAliveWhenNoSteps()

      Specifies whether the job flow should terminate after completing all steps.
      戻り値:
        Specifies whether the job flow should terminate after completing all steps.

    - #### setKeepJobFlowAliveWhenNoSteps

          public void setKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)

      Specifies whether the job flow should terminate after completing all steps.
      パラメータ:
        `keepJobFlowAliveWhenNoSteps` - Specifies whether the job flow should terminate after completing all steps.

    - #### withKeepJobFlowAliveWhenNoSteps

          public JobFlowInstancesConfig withKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)

      Specifies whether the job flow should terminate after completing all steps.

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

      パラメータ:
        `keepJobFlowAliveWhenNoSteps` - Specifies whether the job flow should terminate after completing all steps.

    - #### getKeepJobFlowAliveWhenNoSteps

          public java.lang.Boolean getKeepJobFlowAliveWhenNoSteps()

      Specifies whether the job flow should terminate after completing all steps.
      戻り値:
        Specifies whether the job flow should terminate after completing all steps.

    - #### isTerminationProtected

          public java.lang.Boolean isTerminationProtected()

      Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.
      戻り値:
        Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.

    - #### setTerminationProtected

          public void setTerminationProtected(java.lang.Boolean terminationProtected)

      Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.
      パラメータ:
        `terminationProtected` - Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.

    - #### withTerminationProtected

          public JobFlowInstancesConfig withTerminationProtected(java.lang.Boolean terminationProtected)

      Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.

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

      パラメータ:
        `terminationProtected` - Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.

    - #### getTerminationProtected

          public java.lang.Boolean getTerminationProtected()

      Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.
      戻り値:
        Specifies whether to lock the job flow to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job flow error.

    - #### getHadoopVersion

          public java.lang.String getHadoopVersion()

      Specifies the Hadoop version for the job flow. Valid inputs are "0.18", "0.20", or "0.20.205". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        Specifies the Hadoop version for the job flow. Valid inputs are "0.18", "0.20", or "0.20.205". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

    - #### setHadoopVersion

          public void setHadoopVersion(java.lang.String hadoopVersion)

      Specifies the Hadoop version for the job flow. Valid inputs are "0.18", "0.20", or "0.20.205". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `hadoopVersion` - Specifies the Hadoop version for the job flow. Valid inputs are "0.18", "0.20", or "0.20.205". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

    - #### withHadoopVersion

          public JobFlowInstancesConfig withHadoopVersion(java.lang.String hadoopVersion)

      Specifies the Hadoop version for the job flow. Valid inputs are "0.18", "0.20", or "0.20.205". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

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

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `hadoopVersion` - Specifies the Hadoop version for the job flow. Valid inputs are "0.18", "0.20", or "0.20.205". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

    - #### getEc2SubnetId

          public java.lang.String getEc2SubnetId()

      To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

      Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      戻り値:
        To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

        Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

    - #### setEc2SubnetId

          public void setEc2SubnetId(java.lang.String ec2SubnetId)

      To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

      Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `ec2SubnetId` - To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

        Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

    - #### withEc2SubnetId

          public JobFlowInstancesConfig withEc2SubnetId(java.lang.String ec2SubnetId)

      To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

      Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

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

      Constraints:
      Length: 0 - 256
      Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

      パラメータ:
        `ec2SubnetId` - To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

        Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

    - #### 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`