public class JobFlowInstancesDetail extends Object implements Serializable, Cloneable
Specify the type of Amazon EC2 instances to run the job flow on.
| Constructor and Description | 
|---|
| JobFlowInstancesDetail()Default constructor for a new JobFlowInstancesDetail object. | 
| JobFlowInstancesDetail(String masterInstanceType,
                      String slaveInstanceType,
                      Integer instanceCount)Constructs a new JobFlowInstancesDetail object. | 
| Modifier and Type | Method and Description | 
|---|---|
| JobFlowInstancesDetail | clone() | 
| boolean | equals(Object obj) | 
| String | getEc2KeyName()The name of an Amazon EC2 key pair that can be used to ssh to the
 master node of job flow. | 
| String | getEc2SubnetId()For job flows launched within Amazon Virtual Private Cloud, this value
 specifies the identifier of the subnet where the job flow was
 launched. | 
| String | getHadoopVersion()The Hadoop version for the job flow. | 
| Integer | getInstanceCount()The number of Amazon EC2 instances in the cluster. | 
| List<InstanceGroupDetail> | getInstanceGroups()Details about the job flow's instance groups. | 
| Boolean | getKeepJobFlowAliveWhenNoSteps()Specifies whether the job flow should terminate after completing all
 steps. | 
| String | getMasterInstanceId()The Amazon EC2 instance identifier of the master node. | 
| String | getMasterInstanceType()The Amazon EC2 master node instance type. | 
| String | getMasterPublicDnsName()The DNS name of the master node. | 
| Integer | getNormalizedInstanceHours()An approximation of the cost of the job flow, represented in
 m1.small/hours. | 
| PlacementType | getPlacement()The Amazon EC2 Availability Zone for the job flow. | 
| String | getSlaveInstanceType()The Amazon EC2 slave node instance type. | 
| Boolean | getTerminationProtected()Specifies whether the Amazon EC2 instances in the cluster are
 protected from termination by API calls, user intervention, or in the
 event of a job flow error. | 
| int | hashCode() | 
| Boolean | isKeepJobFlowAliveWhenNoSteps()Specifies whether the job flow should terminate after completing all
 steps. | 
| Boolean | isTerminationProtected()Specifies whether the Amazon EC2 instances in the cluster are
 protected from termination by API calls, user intervention, or in the
 event of a job flow error. | 
| void | setEc2KeyName(String ec2KeyName)The name of an Amazon EC2 key pair that can be used to ssh to the
 master node of job flow. | 
| void | setEc2SubnetId(String ec2SubnetId)For job flows launched within Amazon Virtual Private Cloud, this value
 specifies the identifier of the subnet where the job flow was
 launched. | 
| void | setHadoopVersion(String hadoopVersion)The Hadoop version for the job flow. | 
| void | setInstanceCount(Integer instanceCount)The number of Amazon EC2 instances in the cluster. | 
| void | setInstanceGroups(Collection<InstanceGroupDetail> instanceGroups)Details about the job flow's instance groups. | 
| void | setKeepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps)Specifies whether the job flow should terminate after completing all
 steps. | 
| void | setMasterInstanceId(String masterInstanceId)The Amazon EC2 instance identifier of the master node. | 
| void | setMasterInstanceType(String masterInstanceType)The Amazon EC2 master node instance type. | 
| void | setMasterPublicDnsName(String masterPublicDnsName)The DNS name of the master node. | 
| void | setNormalizedInstanceHours(Integer normalizedInstanceHours)An approximation of the cost of the job flow, represented in
 m1.small/hours. | 
| void | setPlacement(PlacementType placement)The Amazon EC2 Availability Zone for the job flow. | 
| void | setSlaveInstanceType(String slaveInstanceType)The Amazon EC2 slave node instance type. | 
| void | setTerminationProtected(Boolean terminationProtected)Specifies whether the Amazon EC2 instances in the cluster are
 protected from termination by API calls, user intervention, or in the
 event of a job flow error. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| JobFlowInstancesDetail | withEc2KeyName(String ec2KeyName)The name of an Amazon EC2 key pair that can be used to ssh to the
 master node of job flow. | 
| JobFlowInstancesDetail | withEc2SubnetId(String ec2SubnetId)For job flows launched within Amazon Virtual Private Cloud, this value
 specifies the identifier of the subnet where the job flow was
 launched. | 
| JobFlowInstancesDetail | withHadoopVersion(String hadoopVersion)The Hadoop version for the job flow. | 
| JobFlowInstancesDetail | withInstanceCount(Integer instanceCount)The number of Amazon EC2 instances in the cluster. | 
| JobFlowInstancesDetail | withInstanceGroups(Collection<InstanceGroupDetail> instanceGroups)Details about the job flow's instance groups. | 
| JobFlowInstancesDetail | withInstanceGroups(InstanceGroupDetail... instanceGroups)Details about the job flow's instance groups. | 
| JobFlowInstancesDetail | withKeepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps)Specifies whether the job flow should terminate after completing all
 steps. | 
| JobFlowInstancesDetail | withMasterInstanceId(String masterInstanceId)The Amazon EC2 instance identifier of the master node. | 
| JobFlowInstancesDetail | withMasterInstanceType(String masterInstanceType)The Amazon EC2 master node instance type. | 
| JobFlowInstancesDetail | withMasterPublicDnsName(String masterPublicDnsName)The DNS name of the master node. | 
| JobFlowInstancesDetail | withNormalizedInstanceHours(Integer normalizedInstanceHours)An approximation of the cost of the job flow, represented in
 m1.small/hours. | 
| JobFlowInstancesDetail | withPlacement(PlacementType placement)The Amazon EC2 Availability Zone for the job flow. | 
| JobFlowInstancesDetail | withSlaveInstanceType(String slaveInstanceType)The Amazon EC2 slave node instance type. | 
| JobFlowInstancesDetail | withTerminationProtected(Boolean terminationProtected)Specifies whether the Amazon EC2 instances in the cluster are
 protected from termination by API calls, user intervention, or in the
 event of a job flow error. | 
public JobFlowInstancesDetail()
public JobFlowInstancesDetail(String masterInstanceType, String slaveInstanceType, Integer instanceCount)
masterInstanceType - The Amazon EC2 master node instance type.slaveInstanceType - The Amazon EC2 slave node instance type.instanceCount - The number of Amazon EC2 instances in the
 cluster. If the value is 1, the same instance serves as both the
 master and slave node. If the value is greater than 1, one instance is
 the master node and all others are slave nodes.public String getMasterInstanceType()
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setMasterInstanceType(String masterInstanceType)
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
masterInstanceType - The Amazon EC2 master node instance type.public JobFlowInstancesDetail withMasterInstanceType(String masterInstanceType)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
masterInstanceType - The Amazon EC2 master node instance type.public String getMasterPublicDnsName()
 Constraints:
 Length: 0 - 10280
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setMasterPublicDnsName(String masterPublicDnsName)
 Constraints:
 Length: 0 - 10280
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
masterPublicDnsName - The DNS name of the master node.public JobFlowInstancesDetail withMasterPublicDnsName(String masterPublicDnsName)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 10280
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
masterPublicDnsName - The DNS name of the master node.public String getMasterInstanceId()
 Constraints:
 Length: 0 - 10280
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setMasterInstanceId(String masterInstanceId)
 Constraints:
 Length: 0 - 10280
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
masterInstanceId - The Amazon EC2 instance identifier of the master node.public JobFlowInstancesDetail withMasterInstanceId(String masterInstanceId)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 10280
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
masterInstanceId - The Amazon EC2 instance identifier of the master node.public String getSlaveInstanceType()
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setSlaveInstanceType(String slaveInstanceType)
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
slaveInstanceType - The Amazon EC2 slave node instance type.public JobFlowInstancesDetail withSlaveInstanceType(String slaveInstanceType)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
slaveInstanceType - The Amazon EC2 slave node instance type.public Integer getInstanceCount()
public void setInstanceCount(Integer instanceCount)
instanceCount - The number of Amazon EC2 instances in the cluster. If the value is 1,
         the same instance serves as both the master and slave node. If the
         value is greater than 1, one instance is the master node and all
         others are slave nodes.public JobFlowInstancesDetail withInstanceCount(Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount - The number of Amazon EC2 instances in the cluster. If the value is 1,
         the same instance serves as both the master and slave node. If the
         value is greater than 1, one instance is the master node and all
         others are slave nodes.public List<InstanceGroupDetail> getInstanceGroups()
public void setInstanceGroups(Collection<InstanceGroupDetail> instanceGroups)
instanceGroups - Details about the job flow's instance groups.public JobFlowInstancesDetail withInstanceGroups(InstanceGroupDetail... instanceGroups)
 NOTE: This method appends the values to the existing list (if
 any). Use setInstanceGroups(java.util.Collection) or withInstanceGroups(java.util.Collection) if you want to override the
 existing values.
 
Returns a reference to this object so that method calls can be chained together.
instanceGroups - Details about the job flow's instance groups.public JobFlowInstancesDetail withInstanceGroups(Collection<InstanceGroupDetail> instanceGroups)
Returns a reference to this object so that method calls can be chained together.
instanceGroups - Details about the job flow's instance groups.public Integer getNormalizedInstanceHours()
public void setNormalizedInstanceHours(Integer normalizedInstanceHours)
normalizedInstanceHours - An approximation of the cost of the job flow, represented in
         m1.small/hours. This value is incremented once for every hour an
         m1.small runs. Larger instances are weighted more, so an Amazon EC2
         instance that is roughly four times more expensive would result in the
         normalized instance hours being incremented by four. This result is
         only an approximation and does not reflect the actual billing rate.public JobFlowInstancesDetail withNormalizedInstanceHours(Integer normalizedInstanceHours)
Returns a reference to this object so that method calls can be chained together.
normalizedInstanceHours - An approximation of the cost of the job flow, represented in
         m1.small/hours. This value is incremented once for every hour an
         m1.small runs. Larger instances are weighted more, so an Amazon EC2
         instance that is roughly four times more expensive would result in the
         normalized instance hours being incremented by four. This result is
         only an approximation and does not reflect the actual billing rate.public String getEc2KeyName()
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setEc2KeyName(String ec2KeyName)
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ec2KeyName - The name of an Amazon EC2 key pair that can be used to ssh to the
         master node of job flow.public JobFlowInstancesDetail withEc2KeyName(String ec2KeyName)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ec2KeyName - The name of an Amazon EC2 key pair that can be used to ssh to the
         master node of job flow.public String getEc2SubnetId()
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setEc2SubnetId(String ec2SubnetId)
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ec2SubnetId - For job flows launched within Amazon Virtual Private Cloud, this value
         specifies the identifier of the subnet where the job flow was
         launched.public JobFlowInstancesDetail withEc2SubnetId(String ec2SubnetId)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ec2SubnetId - For job flows launched within Amazon Virtual Private Cloud, this value
         specifies the identifier of the subnet where the job flow was
         launched.public PlacementType getPlacement()
public void setPlacement(PlacementType placement)
placement - The Amazon EC2 Availability Zone for the job flow.public JobFlowInstancesDetail withPlacement(PlacementType placement)
Returns a reference to this object so that method calls can be chained together.
placement - The Amazon EC2 Availability Zone for the job flow.public Boolean isKeepJobFlowAliveWhenNoSteps()
public void setKeepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps)
keepJobFlowAliveWhenNoSteps - Specifies whether the job flow should terminate after completing all
         steps.public JobFlowInstancesDetail withKeepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps)
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.public Boolean getKeepJobFlowAliveWhenNoSteps()
public Boolean isTerminationProtected()
public void setTerminationProtected(Boolean terminationProtected)
terminationProtected - Specifies whether the Amazon EC2 instances in the cluster are
         protected from termination by API calls, user intervention, or in the
         event of a job flow error.public JobFlowInstancesDetail withTerminationProtected(Boolean terminationProtected)
Returns a reference to this object so that method calls can be chained together.
terminationProtected - Specifies whether the Amazon EC2 instances in the cluster are
         protected from termination by API calls, user intervention, or in the
         event of a job flow error.public Boolean getTerminationProtected()
public String getHadoopVersion()
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setHadoopVersion(String hadoopVersion)
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
hadoopVersion - The Hadoop version for the job flow.public JobFlowInstancesDetail withHadoopVersion(String hadoopVersion)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
hadoopVersion - The Hadoop version for the job flow.public String toString()
toString in class ObjectObject.toString()public JobFlowInstancesDetail clone()
Copyright © 2015. All rights reserved.