public class Instance extends Object implements Serializable, Cloneable
Represents an EC2 instance provisioned as part of cluster.
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(Object obj) |
List<EbsVolume> |
getEbsVolumes()
The list of EBS volumes that are attached to this instance.
|
String |
getEc2InstanceId()
The unique identifier of the instance in Amazon EC2.
|
String |
getId()
The unique identifier for the instance in Amazon EMR.
|
String |
getInstanceGroupId()
The identifier of the instance group to which this instance belongs.
|
String |
getPrivateDnsName()
The private DNS name of the instance.
|
String |
getPrivateIpAddress()
The private IP address of the instance.
|
String |
getPublicDnsName()
The public DNS name of the instance.
|
String |
getPublicIpAddress()
The public IP address of the instance.
|
InstanceStatus |
getStatus()
The current status of the instance.
|
int |
hashCode() |
void |
setEbsVolumes(Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
|
void |
setEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
|
void |
setId(String id)
The unique identifier for the instance in Amazon EMR.
|
void |
setInstanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
|
void |
setPrivateDnsName(String privateDnsName)
The private DNS name of the instance.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
|
void |
setPublicDnsName(String publicDnsName)
The public DNS name of the instance.
|
void |
setPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
|
void |
setStatus(InstanceStatus status)
The current status of the instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Instance |
withEbsVolumes(Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
|
Instance |
withEbsVolumes(EbsVolume... ebsVolumes)
The list of EBS volumes that are attached to this instance.
|
Instance |
withEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
|
Instance |
withId(String id)
The unique identifier for the instance in Amazon EMR.
|
Instance |
withInstanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
|
Instance |
withPrivateDnsName(String privateDnsName)
The private DNS name of the instance.
|
Instance |
withPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
|
Instance |
withPublicDnsName(String publicDnsName)
The public DNS name of the instance.
|
Instance |
withPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
|
Instance |
withStatus(InstanceStatus status)
The current status of the instance.
|
public void setId(String id)
The unique identifier for the instance in Amazon EMR.
id
- The unique identifier for the instance in Amazon EMR.public String getId()
The unique identifier for the instance in Amazon EMR.
public Instance withId(String id)
The unique identifier for the instance in Amazon EMR.
id
- The unique identifier for the instance in Amazon EMR.public void setEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
ec2InstanceId
- The unique identifier of the instance in Amazon EC2.public String getEc2InstanceId()
The unique identifier of the instance in Amazon EC2.
public Instance withEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
ec2InstanceId
- The unique identifier of the instance in Amazon EC2.public void setPublicDnsName(String publicDnsName)
The public DNS name of the instance.
publicDnsName
- The public DNS name of the instance.public String getPublicDnsName()
The public DNS name of the instance.
public Instance withPublicDnsName(String publicDnsName)
The public DNS name of the instance.
publicDnsName
- The public DNS name of the instance.public void setPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.public String getPublicIpAddress()
The public IP address of the instance.
public Instance withPublicIpAddress(String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.public void setPrivateDnsName(String privateDnsName)
The private DNS name of the instance.
privateDnsName
- The private DNS name of the instance.public String getPrivateDnsName()
The private DNS name of the instance.
public Instance withPrivateDnsName(String privateDnsName)
The private DNS name of the instance.
privateDnsName
- The private DNS name of the instance.public void setPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
privateIpAddress
- The private IP address of the instance.public String getPrivateIpAddress()
The private IP address of the instance.
public Instance withPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.
privateIpAddress
- The private IP address of the instance.public void setStatus(InstanceStatus status)
The current status of the instance.
status
- The current status of the instance.public InstanceStatus getStatus()
The current status of the instance.
public Instance withStatus(InstanceStatus status)
The current status of the instance.
status
- The current status of the instance.public void setInstanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
instanceGroupId
- The identifier of the instance group to which this instance belongs.public String getInstanceGroupId()
The identifier of the instance group to which this instance belongs.
public Instance withInstanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
instanceGroupId
- The identifier of the instance group to which this instance belongs.public List<EbsVolume> getEbsVolumes()
The list of EBS volumes that are attached to this instance.
public void setEbsVolumes(Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
ebsVolumes
- The list of EBS volumes that are attached to this instance.public Instance withEbsVolumes(EbsVolume... ebsVolumes)
The list of EBS volumes that are attached to this instance.
NOTE: This method appends the values to the existing list (if any). Use
setEbsVolumes(java.util.Collection)
or withEbsVolumes(java.util.Collection)
if you want to
override the existing values.
ebsVolumes
- The list of EBS volumes that are attached to this instance.public Instance withEbsVolumes(Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
ebsVolumes
- The list of EBS volumes that are attached to this instance.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.