public class Ec2InstanceAttributes extends Object implements Serializable, Cloneable
Provides information about the EC2 instances in a cluster grouped by category. For example, key name, subnet ID, IAM instance profile, and so on.
Constructor and Description |
---|
Ec2InstanceAttributes() |
Modifier and Type | Method and Description |
---|---|
Ec2InstanceAttributes |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAdditionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master
node.
|
List<String> |
getAdditionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the slave
nodes.
|
String |
getEc2AvailabilityZone()
The Availability Zone in which the cluster will run.
|
String |
getEc2KeyName()
The name of the Amazon EC2 key pair to use when connecting with SSH
into the master node as a user named "hadoop".
|
String |
getEc2SubnetId()
To launch the job flow in Amazon VPC, set this parameter to the
identifier of the Amazon VPC subnet where you want the job flow to
launch.
|
String |
getEmrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the master node.
|
String |
getEmrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the slave nodes.
|
String |
getIamInstanceProfile()
The IAM role that was specified when the job flow was launched.
|
int |
hashCode() |
void |
setAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master
node.
|
void |
setAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave
nodes.
|
void |
setEc2AvailabilityZone(String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
|
void |
setEc2KeyName(String ec2KeyName)
The name of the Amazon EC2 key pair to use when connecting with SSH
into the master node as a user named "hadoop".
|
void |
setEc2SubnetId(String ec2SubnetId)
To launch the job flow in Amazon VPC, set this parameter to the
identifier of the Amazon VPC subnet where you want the job flow to
launch.
|
void |
setEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the master node.
|
void |
setEmrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the slave nodes.
|
void |
setIamInstanceProfile(String iamInstanceProfile)
The IAM role that was specified when the job flow was launched.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Ec2InstanceAttributes |
withAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master
node.
|
Ec2InstanceAttributes |
withAdditionalMasterSecurityGroups(String... additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master
node.
|
Ec2InstanceAttributes |
withAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave
nodes.
|
Ec2InstanceAttributes |
withAdditionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave
nodes.
|
Ec2InstanceAttributes |
withEc2AvailabilityZone(String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
|
Ec2InstanceAttributes |
withEc2KeyName(String ec2KeyName)
The name of the Amazon EC2 key pair to use when connecting with SSH
into the master node as a user named "hadoop".
|
Ec2InstanceAttributes |
withEc2SubnetId(String ec2SubnetId)
To launch the job flow in Amazon VPC, set this parameter to the
identifier of the Amazon VPC subnet where you want the job flow to
launch.
|
Ec2InstanceAttributes |
withEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the master node.
|
Ec2InstanceAttributes |
withEmrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the slave nodes.
|
Ec2InstanceAttributes |
withIamInstanceProfile(String iamInstanceProfile)
The IAM role that was specified when the job flow was launched.
|
public String getEc2KeyName()
public void setEc2KeyName(String ec2KeyName)
ec2KeyName
- The name of the Amazon EC2 key pair to use when connecting with SSH
into the master node as a user named "hadoop".public Ec2InstanceAttributes withEc2KeyName(String ec2KeyName)
Returns a reference to this object so that method calls can be chained together.
ec2KeyName
- The name of the Amazon EC2 key pair to use when connecting with SSH
into the master node as a user named "hadoop".public String getEc2SubnetId()
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 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 VPC.
public void setEc2SubnetId(String ec2SubnetId)
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 VPC.
ec2SubnetId
- To launch the job flow in 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 AWS cloud, outside of a 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 VPC.
public Ec2InstanceAttributes withEc2SubnetId(String ec2SubnetId)
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 VPC.
Returns a reference to this object so that method calls can be chained together.
ec2SubnetId
- To launch the job flow in 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 AWS cloud, outside of a 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 VPC.
public String getEc2AvailabilityZone()
public void setEc2AvailabilityZone(String ec2AvailabilityZone)
ec2AvailabilityZone
- The Availability Zone in which the cluster will run.public Ec2InstanceAttributes withEc2AvailabilityZone(String ec2AvailabilityZone)
Returns a reference to this object so that method calls can be chained together.
ec2AvailabilityZone
- The Availability Zone in which the cluster will run.public String getIamInstanceProfile()
public void setIamInstanceProfile(String iamInstanceProfile)
iamInstanceProfile
- The IAM role that was specified when the job flow was launched. The
EC2 instances of the job flow assume this role.public Ec2InstanceAttributes withIamInstanceProfile(String iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
iamInstanceProfile
- The IAM role that was specified when the job flow was launched. The
EC2 instances of the job flow assume this role.public String getEmrManagedMasterSecurityGroup()
public void setEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the master node.public Ec2InstanceAttributes withEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
Returns a reference to this object so that method calls can be chained together.
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the master node.public String getEmrManagedSlaveSecurityGroup()
public void setEmrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the slave nodes.public Ec2InstanceAttributes withEmrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
Returns a reference to this object so that method calls can be chained together.
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group (managed by Amazon
Elastic MapReduce) for the slave nodes.public List<String> getAdditionalMasterSecurityGroups()
public void setAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master
node.public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(String... additionalMasterSecurityGroups)
NOTE: This method appends the values to the existing list (if
any). Use setAdditionalMasterSecurityGroups(java.util.Collection)
or withAdditionalMasterSecurityGroups(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.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master
node.public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master
node.public List<String> getAdditionalSlaveSecurityGroups()
public void setAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave
nodes.public Ec2InstanceAttributes withAdditionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)
NOTE: This method appends the values to the existing list (if
any). Use setAdditionalSlaveSecurityGroups(java.util.Collection)
or withAdditionalSlaveSecurityGroups(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.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave
nodes.public Ec2InstanceAttributes withAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave
nodes.public String toString()
toString
in class Object
Object.toString()
public Ec2InstanceAttributes clone()
Copyright © 2015. All rights reserved.