Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.model
Class JobFlowInstancesDetail

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.JobFlowInstancesDetail

public class JobFlowInstancesDetail
extends java.lang.Object

Specify the type of Amazon EC2 instances to run the job flow on.


Constructor Summary
JobFlowInstancesDetail()
          Default constructor for a new JobFlowInstancesDetail object.
JobFlowInstancesDetail(java.lang.String masterInstanceType, java.lang.String slaveInstanceType, java.lang.Integer instanceCount)
          Constructs a new JobFlowInstancesDetail object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getEc2KeyName()
          The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.
 java.lang.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.
 java.lang.String getHadoopVersion()
          Specifies the Hadoop version for the job flow.
 java.lang.Integer getInstanceCount()
          The number of Amazon EC2 instances in the cluster.
 java.util.List<InstanceGroupDetail> getInstanceGroups()
          Details about the job flow's instance groups.
 java.lang.Boolean getKeepJobFlowAliveWhenNoSteps()
          Specifies whether or not the job flow should terminate after completing all steps.
 java.lang.String getMasterInstanceId()
          The Amazon EC2 instance identifier of the master node.
 java.lang.String getMasterInstanceType()
          The Amazon EC2 master node instance type.
 java.lang.String getMasterPublicDnsName()
          The DNS name of the master node.
 java.lang.Integer getNormalizedInstanceHours()
          An approximation of the cost of the job flow, represented in m1.small/hours.
 PlacementType getPlacement()
          Specifies the Amazon EC2 Availability Zone for the job flow.
 java.lang.String getSlaveInstanceType()
          The Amazon EC2 slave node instance type.
 java.lang.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()
           
 java.lang.Boolean isKeepJobFlowAliveWhenNoSteps()
          Specifies whether or not the job flow should terminate after completing all steps.
 java.lang.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(java.lang.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(java.lang.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(java.lang.String hadoopVersion)
          Specifies the Hadoop version for the job flow.
 void setInstanceCount(java.lang.Integer instanceCount)
          The number of Amazon EC2 instances in the cluster.
 void setInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
          Details about the job flow's instance groups.
 void setKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)
          Specifies whether or not the job flow should terminate after completing all steps.
 void setMasterInstanceId(java.lang.String masterInstanceId)
          The Amazon EC2 instance identifier of the master node.
 void setMasterInstanceType(java.lang.String masterInstanceType)
          The Amazon EC2 master node instance type.
 void setMasterPublicDnsName(java.lang.String masterPublicDnsName)
          The DNS name of the master node.
 void setNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
          An approximation of the cost of the job flow, represented in m1.small/hours.
 void setPlacement(PlacementType placement)
          Specifies the Amazon EC2 Availability Zone for the job flow.
 void setSlaveInstanceType(java.lang.String slaveInstanceType)
          The Amazon EC2 slave node instance type.
 void setTerminationProtected(java.lang.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.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 JobFlowInstancesDetail withEc2KeyName(java.lang.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(java.lang.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(java.lang.String hadoopVersion)
          Specifies the Hadoop version for the job flow.
 JobFlowInstancesDetail withInstanceCount(java.lang.Integer instanceCount)
          The number of Amazon EC2 instances in the cluster.
 JobFlowInstancesDetail withInstanceGroups(java.util.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(java.lang.Boolean keepJobFlowAliveWhenNoSteps)
          Specifies whether or not the job flow should terminate after completing all steps.
 JobFlowInstancesDetail withMasterInstanceId(java.lang.String masterInstanceId)
          The Amazon EC2 instance identifier of the master node.
 JobFlowInstancesDetail withMasterInstanceType(java.lang.String masterInstanceType)
          The Amazon EC2 master node instance type.
 JobFlowInstancesDetail withMasterPublicDnsName(java.lang.String masterPublicDnsName)
          The DNS name of the master node.
 JobFlowInstancesDetail withNormalizedInstanceHours(java.lang.Integer normalizedInstanceHours)
          An approximation of the cost of the job flow, represented in m1.small/hours.
 JobFlowInstancesDetail withPlacement(PlacementType placement)
          Specifies the Amazon EC2 Availability Zone for the job flow.
 JobFlowInstancesDetail withSlaveInstanceType(java.lang.String slaveInstanceType)
          The Amazon EC2 slave node instance type.
 JobFlowInstancesDetail withTerminationProtected(java.lang.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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobFlowInstancesDetail

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


JobFlowInstancesDetail

public JobFlowInstancesDetail(java.lang.String masterInstanceType,
                              java.lang.String slaveInstanceType,
                              java.lang.Integer instanceCount)
Constructs a new JobFlowInstancesDetail object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
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.
Method Detail

getMasterInstanceType

public java.lang.String getMasterInstanceType()
The Amazon EC2 master node instance type.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
The Amazon EC2 master node instance type.

setMasterInstanceType

public void setMasterInstanceType(java.lang.String masterInstanceType)
The Amazon EC2 master node instance type.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
masterInstanceType - The Amazon EC2 master node instance type.

withMasterInstanceType

public JobFlowInstancesDetail withMasterInstanceType(java.lang.String masterInstanceType)
The Amazon EC2 master node instance type.

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

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
masterInstanceType - The Amazon EC2 master node instance type.
Returns:
A reference to this updated object so that method calls can be chained together.

getMasterPublicDnsName

public java.lang.String getMasterPublicDnsName()
The DNS name of the master node.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Returns:
The DNS name of the master node.

setMasterPublicDnsName

public void setMasterPublicDnsName(java.lang.String masterPublicDnsName)
The DNS name of the master node.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Parameters:
masterPublicDnsName - The DNS name of the master node.

withMasterPublicDnsName

public JobFlowInstancesDetail withMasterPublicDnsName(java.lang.String masterPublicDnsName)
The DNS name of the master node.

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

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Parameters:
masterPublicDnsName - The DNS name of the master node.
Returns:
A reference to this updated object so that method calls can be chained together.

getMasterInstanceId

public java.lang.String getMasterInstanceId()
The Amazon EC2 instance identifier of the master node.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Returns:
The Amazon EC2 instance identifier of the master node.

setMasterInstanceId

public void setMasterInstanceId(java.lang.String masterInstanceId)
The Amazon EC2 instance identifier of the master node.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Parameters:
masterInstanceId - The Amazon EC2 instance identifier of the master node.

withMasterInstanceId

public JobFlowInstancesDetail withMasterInstanceId(java.lang.String masterInstanceId)
The Amazon EC2 instance identifier of the master node.

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

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Parameters:
masterInstanceId - The Amazon EC2 instance identifier of the master node.
Returns:
A reference to this updated object so that method calls can be chained together.

getSlaveInstanceType

public java.lang.String getSlaveInstanceType()
The Amazon EC2 slave node instance type.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
The Amazon EC2 slave node instance type.

setSlaveInstanceType

public void setSlaveInstanceType(java.lang.String slaveInstanceType)
The Amazon EC2 slave node instance type.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
slaveInstanceType - The Amazon EC2 slave node instance type.

withSlaveInstanceType

public JobFlowInstancesDetail withSlaveInstanceType(java.lang.String slaveInstanceType)
The Amazon EC2 slave node instance type.

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

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
slaveInstanceType - The Amazon EC2 slave node instance type.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceCount

public java.lang.Integer getInstanceCount()
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.

Returns:
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.

setInstanceCount

public void setInstanceCount(java.lang.Integer 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.

Parameters:
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.

withInstanceCount

public JobFlowInstancesDetail withInstanceCount(java.lang.Integer 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.

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

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceGroups

public java.util.List<InstanceGroupDetail> getInstanceGroups()
Details about the job flow's instance groups.

Returns:
Details about the job flow's instance groups.

setInstanceGroups

public void setInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
Details about the job flow's instance groups.

Parameters:
instanceGroups - Details about the job flow's instance groups.

withInstanceGroups

public JobFlowInstancesDetail withInstanceGroups(InstanceGroupDetail... instanceGroups)
Details about the job flow's instance groups.

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

Parameters:
instanceGroups - Details about the job flow's instance groups.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceGroups

public JobFlowInstancesDetail withInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
Details about the job flow's instance groups.

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

Parameters:
instanceGroups - Details about the job flow's instance groups.
Returns:
A reference to this updated object so that method calls can be chained together.

getNormalizedInstanceHours

public java.lang.Integer getNormalizedInstanceHours()
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.

Returns:
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.

setNormalizedInstanceHours

public void setNormalizedInstanceHours(java.lang.Integer 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.

Parameters:
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.

withNormalizedInstanceHours

public JobFlowInstancesDetail withNormalizedInstanceHours(java.lang.Integer 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.

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

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getEc2KeyName

public java.lang.String getEc2KeyName()
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.

setEc2KeyName

public void setEc2KeyName(java.lang.String ec2KeyName)
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
ec2KeyName - The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.

withEc2KeyName

public JobFlowInstancesDetail withEc2KeyName(java.lang.String ec2KeyName)
The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.

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

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
ec2KeyName - The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.
Returns:
A reference to this updated object so that method calls can be chained together.

getEc2SubnetId

public java.lang.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.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.

setEc2SubnetId

public void setEc2SubnetId(java.lang.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.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
ec2SubnetId - For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.

withEc2SubnetId

public JobFlowInstancesDetail withEc2SubnetId(java.lang.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.

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

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
ec2SubnetId - For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.
Returns:
A reference to this updated object so that method calls can be chained together.

getPlacement

public PlacementType getPlacement()
Specifies the Amazon EC2 Availability Zone for the job flow.

Returns:
Specifies the Amazon EC2 Availability Zone for the job flow.

setPlacement

public void setPlacement(PlacementType placement)
Specifies the Amazon EC2 Availability Zone for the job flow.

Parameters:
placement - Specifies the Amazon EC2 Availability Zone for the job flow.

withPlacement

public JobFlowInstancesDetail withPlacement(PlacementType placement)
Specifies the Amazon EC2 Availability Zone for the job flow.

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

Parameters:
placement - Specifies the Amazon EC2 Availability Zone for the job flow.
Returns:
A reference to this updated object so that method calls can be chained together.

isKeepJobFlowAliveWhenNoSteps

public java.lang.Boolean isKeepJobFlowAliveWhenNoSteps()
Specifies whether or not the job flow should terminate after completing all steps.

Returns:
Specifies whether or not the job flow should terminate after completing all steps.

setKeepJobFlowAliveWhenNoSteps

public void setKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)
Specifies whether or not the job flow should terminate after completing all steps.

Parameters:
keepJobFlowAliveWhenNoSteps - Specifies whether or not the job flow should terminate after completing all steps.

withKeepJobFlowAliveWhenNoSteps

public JobFlowInstancesDetail withKeepJobFlowAliveWhenNoSteps(java.lang.Boolean keepJobFlowAliveWhenNoSteps)
Specifies whether or not the job flow should terminate after completing all steps.

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

Parameters:
keepJobFlowAliveWhenNoSteps - Specifies whether or not the job flow should terminate after completing all steps.
Returns:
A reference to this updated object so that method calls can be chained together.

getKeepJobFlowAliveWhenNoSteps

public java.lang.Boolean getKeepJobFlowAliveWhenNoSteps()
Specifies whether or not the job flow should terminate after completing all steps.

Returns:
Specifies whether or not the job flow should terminate after completing all steps.

isTerminationProtected

public java.lang.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.

Returns:
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.

setTerminationProtected

public void setTerminationProtected(java.lang.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.

Parameters:
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.

withTerminationProtected

public JobFlowInstancesDetail withTerminationProtected(java.lang.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.

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

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getTerminationProtected

public java.lang.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.

Returns:
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.

getHadoopVersion

public java.lang.String getHadoopVersion()
Specifies the Hadoop version for the job flow.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
Specifies the Hadoop version for the job flow.

setHadoopVersion

public void setHadoopVersion(java.lang.String hadoopVersion)
Specifies the Hadoop version for the job flow.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
hadoopVersion - Specifies the Hadoop version for the job flow.

withHadoopVersion

public JobFlowInstancesDetail withHadoopVersion(java.lang.String hadoopVersion)
Specifies the Hadoop version for the job flow.

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

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
hadoopVersion - Specifies the Hadoop version for the job flow.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.