public class JobFlowInstancesDetail
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Specify the type of Amazon EC2 instances to run the job flow on.
Modifier and Type | Field and Description |
---|---|
private 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.
|
private 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.
|
private java.lang.String |
hadoopVersion
The Hadoop version for the job flow.
|
private java.lang.Integer |
instanceCount
The number of Amazon EC2 instances in the cluster.
|
private SdkInternalList<InstanceGroupDetail> |
instanceGroups
Details about the job flow's instance groups.
|
private java.lang.Boolean |
keepJobFlowAliveWhenNoSteps
Specifies whether the job flow should terminate after completing all
steps.
|
private java.lang.String |
masterInstanceId
The Amazon EC2 instance identifier of the master node.
|
private java.lang.String |
masterInstanceType
The Amazon EC2 master node instance type.
|
private java.lang.String |
masterPublicDnsName
The DNS name of the master node.
|
private java.lang.Integer |
normalizedInstanceHours
An approximation of the cost of the job flow, represented in
m1.small/hours.
|
private PlacementType |
placement
The Amazon EC2 Availability Zone for the job flow.
|
private java.lang.String |
slaveInstanceType
The Amazon EC2 slave node instance type.
|
private 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.
|
Constructor and Description |
---|
JobFlowInstancesDetail()
Default constructor for JobFlowInstancesDetail object.
|
JobFlowInstancesDetail(java.lang.String masterInstanceType,
java.lang.String slaveInstanceType,
java.lang.Integer instanceCount)
Constructs a new JobFlowInstancesDetail object.
|
Modifier and Type | Method and Description |
---|---|
JobFlowInstancesDetail |
clone() |
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()
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 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()
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 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)
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 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)
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)
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 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)
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.
|
private java.lang.String masterInstanceType
The Amazon EC2 master node instance type.
private java.lang.String masterPublicDnsName
The DNS name of the master node.
private java.lang.String masterInstanceId
The Amazon EC2 instance identifier of the master node.
private java.lang.String slaveInstanceType
The Amazon EC2 slave node instance type.
private 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.
private SdkInternalList<InstanceGroupDetail> instanceGroups
Details about the job flow's instance groups.
private 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.
private 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.
private 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.
private PlacementType placement
The Amazon EC2 Availability Zone for the job flow.
private java.lang.Boolean keepJobFlowAliveWhenNoSteps
Specifies whether the job flow should terminate after completing all steps.
private 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.
private java.lang.String hadoopVersion
The Hadoop version for the job flow.
public JobFlowInstancesDetail()
public JobFlowInstancesDetail(java.lang.String masterInstanceType, java.lang.String slaveInstanceType, java.lang.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 void setMasterInstanceType(java.lang.String masterInstanceType)
The Amazon EC2 master node instance type.
masterInstanceType
- The Amazon EC2 master node instance type.public java.lang.String getMasterInstanceType()
The Amazon EC2 master node instance type.
public JobFlowInstancesDetail withMasterInstanceType(java.lang.String masterInstanceType)
The Amazon EC2 master node instance type.
masterInstanceType
- The Amazon EC2 master node instance type.public void setMasterPublicDnsName(java.lang.String masterPublicDnsName)
The DNS name of the master node.
masterPublicDnsName
- The DNS name of the master node.public java.lang.String getMasterPublicDnsName()
The DNS name of the master node.
public JobFlowInstancesDetail withMasterPublicDnsName(java.lang.String masterPublicDnsName)
The DNS name of the master node.
masterPublicDnsName
- The DNS name of the master node.public void setMasterInstanceId(java.lang.String masterInstanceId)
The Amazon EC2 instance identifier of the master node.
masterInstanceId
- The Amazon EC2 instance identifier of the master node.public java.lang.String getMasterInstanceId()
The Amazon EC2 instance identifier of the master node.
public JobFlowInstancesDetail withMasterInstanceId(java.lang.String masterInstanceId)
The Amazon EC2 instance identifier of the master node.
masterInstanceId
- The Amazon EC2 instance identifier of the master node.public void setSlaveInstanceType(java.lang.String slaveInstanceType)
The Amazon EC2 slave node instance type.
slaveInstanceType
- The Amazon EC2 slave node instance type.public java.lang.String getSlaveInstanceType()
The Amazon EC2 slave node instance type.
public JobFlowInstancesDetail withSlaveInstanceType(java.lang.String slaveInstanceType)
The Amazon EC2 slave node instance type.
slaveInstanceType
- The Amazon EC2 slave node instance type.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.
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 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.
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.
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 java.util.List<InstanceGroupDetail> getInstanceGroups()
Details about the job flow's instance groups.
public void setInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
Details about the job flow's instance groups.
instanceGroups
- Details about the job flow's instance groups.public JobFlowInstancesDetail withInstanceGroups(InstanceGroupDetail... instanceGroups)
Details about the job flow's instance groups.
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.
instanceGroups
- Details about the job flow's instance groups.public JobFlowInstancesDetail withInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups)
Details about the job flow's instance groups.
instanceGroups
- Details about the job flow's instance groups.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.
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 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.
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.
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 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.
ec2KeyName
- The name of an Amazon EC2 key pair that can be used to ssh to the
master node of job flow.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.
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.
ec2KeyName
- The name of an Amazon EC2 key pair that can be used to ssh to the
master node of job flow.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.
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 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.
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.
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 void setPlacement(PlacementType placement)
The Amazon EC2 Availability Zone for the job flow.
placement
- The Amazon EC2 Availability Zone for the job flow.public PlacementType getPlacement()
The Amazon EC2 Availability Zone for the job flow.
public JobFlowInstancesDetail withPlacement(PlacementType placement)
The Amazon EC2 Availability Zone for the job flow.
placement
- The Amazon EC2 Availability Zone for the job flow.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.public java.lang.Boolean getKeepJobFlowAliveWhenNoSteps()
Specifies whether the job flow should terminate after completing all steps.
public JobFlowInstancesDetail withKeepJobFlowAliveWhenNoSteps(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.public java.lang.Boolean isKeepJobFlowAliveWhenNoSteps()
Specifies whether the job flow should terminate after completing all steps.
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.
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 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.
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.
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 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.
public void setHadoopVersion(java.lang.String hadoopVersion)
The Hadoop version for the job flow.
hadoopVersion
- The Hadoop version for the job flow.public java.lang.String getHadoopVersion()
The Hadoop version for the job flow.
public JobFlowInstancesDetail withHadoopVersion(java.lang.String hadoopVersion)
The Hadoop version for the job flow.
hadoopVersion
- The Hadoop version for the job flow.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public JobFlowInstancesDetail clone()
clone
in class java.lang.Object