com.amazonaws.services.elasticmapreduce.model
Class Ec2InstanceAttributes

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.Ec2InstanceAttributes
All Implemented Interfaces:
Serializable

public class Ec2InstanceAttributes
extends Object
implements Serializable

Provides information about the EC2 instances in a cluster grouped by category. For example, EC2 Key Name, Subnet Id, Instance Profile, and so on.

See Also:
Serialized Form

Constructor Summary
Ec2InstanceAttributes()
           
 
Method Summary
 boolean equals(Object obj)
           
 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 getIamInstanceProfile()
          The IAM role that was specified when the job flow was launched.
 int hashCode()
           
 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 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 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 withIamInstanceProfile(String iamInstanceProfile)
          The IAM role that was specified when the job flow was launched.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ec2InstanceAttributes

public Ec2InstanceAttributes()
Method Detail

getEc2KeyName

public 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".

Returns:
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".

setEc2KeyName

public 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".

Parameters:
ec2KeyName - The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".

withEc2KeyName

public 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".

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

Parameters:
ec2KeyName - The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
Returns:
A reference to this updated object so that method calls can be chained together.

getEc2SubnetId

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

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


setEc2SubnetId

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

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


withEc2SubnetId

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

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

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

Returns:
A reference to this updated object so that method calls can be chained together.

getEc2AvailabilityZone

public String getEc2AvailabilityZone()
The Availability Zone in which the cluster will run.

Returns:
The Availability Zone in which the cluster will run.

setEc2AvailabilityZone

public void setEc2AvailabilityZone(String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.

Parameters:
ec2AvailabilityZone - The Availability Zone in which the cluster will run.

withEc2AvailabilityZone

public Ec2InstanceAttributes withEc2AvailabilityZone(String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.

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

Parameters:
ec2AvailabilityZone - The Availability Zone in which the cluster will run.
Returns:
A reference to this updated object so that method calls can be chained together.

getIamInstanceProfile

public String getIamInstanceProfile()
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

Returns:
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

setIamInstanceProfile

public void setIamInstanceProfile(String iamInstanceProfile)
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

Parameters:
iamInstanceProfile - The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

withIamInstanceProfile

public Ec2InstanceAttributes withIamInstanceProfile(String iamInstanceProfile)
The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

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

Parameters:
iamInstanceProfile - The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.