public class Ec2InstanceAttributes
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
additionalMasterSecurityGroups
A list of additional Amazon EC2 security group IDs for the master node.
|
private SdkInternalList<java.lang.String> |
additionalSlaveSecurityGroups
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
private java.lang.String |
ec2AvailabilityZone
The Availability Zone in which the cluster will run.
|
private java.lang.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".
|
private java.lang.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.
|
private java.lang.String |
emrManagedMasterSecurityGroup
The identifier of the Amazon EC2 security group for the master node.
|
private java.lang.String |
emrManagedSlaveSecurityGroup
The identifier of the Amazon EC2 security group for the slave nodes.
|
private java.lang.String |
iamInstanceProfile
The IAM role that was specified when the job flow was launched.
|
private java.lang.String |
serviceAccessSecurityGroup
The identifier of the Amazon EC2 security group for the Amazon EMR
service to access clusters in VPC private subnets.
|
Constructor and Description |
---|
Ec2InstanceAttributes() |
Modifier and Type | Method and Description |
---|---|
Ec2InstanceAttributes |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAdditionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master node.
|
java.util.List<java.lang.String> |
getAdditionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
java.lang.String |
getEc2AvailabilityZone()
The Availability Zone in which the cluster will run.
|
java.lang.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".
|
java.lang.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.
|
java.lang.String |
getEmrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
|
java.lang.String |
getEmrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the slave nodes.
|
java.lang.String |
getIamInstanceProfile()
The IAM role that was specified when the job flow was launched.
|
java.lang.String |
getServiceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR
service to access clusters in VPC private subnets.
|
int |
hashCode() |
void |
setAdditionalMasterSecurityGroups(java.util.Collection<java.lang.String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
|
void |
setAdditionalSlaveSecurityGroups(java.util.Collection<java.lang.String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
void |
setEc2AvailabilityZone(java.lang.String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
|
void |
setEc2KeyName(java.lang.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(java.lang.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(java.lang.String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
|
void |
setEmrManagedSlaveSecurityGroup(java.lang.String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the slave nodes.
|
void |
setIamInstanceProfile(java.lang.String iamInstanceProfile)
The IAM role that was specified when the job flow was launched.
|
void |
setServiceAccessSecurityGroup(java.lang.String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR
service to access clusters in VPC private subnets.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Ec2InstanceAttributes |
withAdditionalMasterSecurityGroups(java.util.Collection<java.lang.String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
|
Ec2InstanceAttributes |
withAdditionalMasterSecurityGroups(java.lang.String... additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
|
Ec2InstanceAttributes |
withAdditionalSlaveSecurityGroups(java.util.Collection<java.lang.String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
Ec2InstanceAttributes |
withAdditionalSlaveSecurityGroups(java.lang.String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
Ec2InstanceAttributes |
withEc2AvailabilityZone(java.lang.String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
|
Ec2InstanceAttributes |
withEc2KeyName(java.lang.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(java.lang.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(java.lang.String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
|
Ec2InstanceAttributes |
withEmrManagedSlaveSecurityGroup(java.lang.String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the slave nodes.
|
Ec2InstanceAttributes |
withIamInstanceProfile(java.lang.String iamInstanceProfile)
The IAM role that was specified when the job flow was launched.
|
Ec2InstanceAttributes |
withServiceAccessSecurityGroup(java.lang.String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR
service to access clusters in VPC private subnets.
|
private java.lang.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".
private java.lang.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. 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.
private java.lang.String ec2AvailabilityZone
The Availability Zone in which the cluster will run.
private java.lang.String iamInstanceProfile
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
private java.lang.String emrManagedMasterSecurityGroup
The identifier of the Amazon EC2 security group for the master node.
private java.lang.String emrManagedSlaveSecurityGroup
The identifier of the Amazon EC2 security group for the slave nodes.
private java.lang.String serviceAccessSecurityGroup
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
private SdkInternalList<java.lang.String> additionalMasterSecurityGroups
A list of additional Amazon EC2 security group IDs for the master node.
private SdkInternalList<java.lang.String> additionalSlaveSecurityGroups
A list of additional Amazon EC2 security group IDs for the slave nodes.
public void setEc2KeyName(java.lang.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".
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 java.lang.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".
public Ec2InstanceAttributes withEc2KeyName(java.lang.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".
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 void setEc2SubnetId(java.lang.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. 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.
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 java.lang.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. 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.
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(java.lang.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. 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.
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 void setEc2AvailabilityZone(java.lang.String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
ec2AvailabilityZone
- The Availability Zone in which the cluster will run.public java.lang.String getEc2AvailabilityZone()
The Availability Zone in which the cluster will run.
public Ec2InstanceAttributes withEc2AvailabilityZone(java.lang.String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
ec2AvailabilityZone
- The Availability Zone in which the cluster will run.public void setIamInstanceProfile(java.lang.String iamInstanceProfile)
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
iamInstanceProfile
- The IAM role that was specified when the job flow was launched.
The EC2 instances of the job flow assume this role.public java.lang.String getIamInstanceProfile()
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(java.lang.String iamInstanceProfile)
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
iamInstanceProfile
- The IAM role that was specified when the job flow was launched.
The EC2 instances of the job flow assume this role.public void setEmrManagedMasterSecurityGroup(java.lang.String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group for the master
node.public java.lang.String getEmrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
public Ec2InstanceAttributes withEmrManagedMasterSecurityGroup(java.lang.String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group for the master
node.public void setEmrManagedSlaveSecurityGroup(java.lang.String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the slave nodes.
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the slave
nodes.public java.lang.String getEmrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the slave nodes.
public Ec2InstanceAttributes withEmrManagedSlaveSecurityGroup(java.lang.String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the slave nodes.
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the slave
nodes.public void setServiceAccessSecurityGroup(java.lang.String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
serviceAccessSecurityGroup
- The identifier of the Amazon EC2 security group for the Amazon EMR
service to access clusters in VPC private subnets.public java.lang.String getServiceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
public Ec2InstanceAttributes withServiceAccessSecurityGroup(java.lang.String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
serviceAccessSecurityGroup
- The identifier of the Amazon EC2 security group for the Amazon EMR
service to access clusters in VPC private subnets.public java.util.List<java.lang.String> getAdditionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master node.
public void setAdditionalMasterSecurityGroups(java.util.Collection<java.lang.String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master
node.public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(java.lang.String... additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
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.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master
node.public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(java.util.Collection<java.lang.String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master
node.public java.util.List<java.lang.String> getAdditionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the slave nodes.
public void setAdditionalSlaveSecurityGroups(java.util.Collection<java.lang.String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave
nodes.public Ec2InstanceAttributes withAdditionalSlaveSecurityGroups(java.lang.String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
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.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave
nodes.public Ec2InstanceAttributes withAdditionalSlaveSecurityGroups(java.util.Collection<java.lang.String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave
nodes.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 Ec2InstanceAttributes clone()
clone
in class java.lang.Object