public class Instance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents an EC2 instance provisioned as part of cluster.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<EbsVolume> |
ebsVolumes
The list of EBS volumes that are attached to this instance.
|
private java.lang.String |
ec2InstanceId
The unique identifier of the instance in Amazon EC2.
|
private java.lang.String |
id
The unique identifier for the instance in Amazon EMR.
|
private java.lang.String |
instanceGroupId
The identifier of the instance group to which this instance belongs.
|
private java.lang.String |
privateDnsName
The private DNS name of the instance.
|
private java.lang.String |
privateIpAddress
The private IP address of the instance.
|
private java.lang.String |
publicDnsName
The public DNS name of the instance.
|
private java.lang.String |
publicIpAddress
The public IP address of the instance.
|
private InstanceStatus |
status
The current status of the instance.
|
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<EbsVolume> |
getEbsVolumes()
The list of EBS volumes that are attached to this instance.
|
java.lang.String |
getEc2InstanceId()
The unique identifier of the instance in Amazon EC2.
|
java.lang.String |
getId()
The unique identifier for the instance in Amazon EMR.
|
java.lang.String |
getInstanceGroupId()
The identifier of the instance group to which this instance belongs.
|
java.lang.String |
getPrivateDnsName()
The private DNS name of the instance.
|
java.lang.String |
getPrivateIpAddress()
The private IP address of the instance.
|
java.lang.String |
getPublicDnsName()
The public DNS name of the instance.
|
java.lang.String |
getPublicIpAddress()
The public IP address of the instance.
|
InstanceStatus |
getStatus()
The current status of the instance.
|
int |
hashCode() |
void |
setEbsVolumes(java.util.Collection<EbsVolume> ebsVolumes)
The list of EBS volumes that are attached to this instance.
|
void |
setEc2InstanceId(java.lang.String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
|
void |
setId(java.lang.String id)
The unique identifier for the instance in Amazon EMR.
|
void |
setInstanceGroupId(java.lang.String instanceGroupId)
The identifier of the instance group to which this instance belongs.
|
void |
setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name of the instance.
|
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the instance.
|
void |
setPublicDnsName(java.lang.String publicDnsName)
The public DNS name of the instance.
|
void |
setPublicIpAddress(java.lang.String publicIpAddress)
The public IP address of the instance.
|
void |
setStatus(InstanceStatus status)
The current status of the instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Instance |
withEbsVolumes(java.util.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(java.lang.String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
|
Instance |
withId(java.lang.String id)
The unique identifier for the instance in Amazon EMR.
|
Instance |
withInstanceGroupId(java.lang.String instanceGroupId)
The identifier of the instance group to which this instance belongs.
|
Instance |
withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name of the instance.
|
Instance |
withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the instance.
|
Instance |
withPublicDnsName(java.lang.String publicDnsName)
The public DNS name of the instance.
|
Instance |
withPublicIpAddress(java.lang.String publicIpAddress)
The public IP address of the instance.
|
Instance |
withStatus(InstanceStatus status)
The current status of the instance.
|
private java.lang.String id
The unique identifier for the instance in Amazon EMR.
private java.lang.String ec2InstanceId
The unique identifier of the instance in Amazon EC2.
private java.lang.String publicDnsName
The public DNS name of the instance.
private java.lang.String publicIpAddress
The public IP address of the instance.
private java.lang.String privateDnsName
The private DNS name of the instance.
private java.lang.String privateIpAddress
The private IP address of the instance.
private InstanceStatus status
The current status of the instance.
private java.lang.String instanceGroupId
The identifier of the instance group to which this instance belongs.
private SdkInternalList<EbsVolume> ebsVolumes
The list of EBS volumes that are attached to this instance.
public void setId(java.lang.String id)
The unique identifier for the instance in Amazon EMR.
id
- The unique identifier for the instance in Amazon EMR.public java.lang.String getId()
The unique identifier for the instance in Amazon EMR.
public Instance withId(java.lang.String id)
The unique identifier for the instance in Amazon EMR.
id
- The unique identifier for the instance in Amazon EMR.public void setEc2InstanceId(java.lang.String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
ec2InstanceId
- The unique identifier of the instance in Amazon EC2.public java.lang.String getEc2InstanceId()
The unique identifier of the instance in Amazon EC2.
public Instance withEc2InstanceId(java.lang.String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
ec2InstanceId
- The unique identifier of the instance in Amazon EC2.public void setPublicDnsName(java.lang.String publicDnsName)
The public DNS name of the instance.
publicDnsName
- The public DNS name of the instance.public java.lang.String getPublicDnsName()
The public DNS name of the instance.
public Instance withPublicDnsName(java.lang.String publicDnsName)
The public DNS name of the instance.
publicDnsName
- The public DNS name of the instance.public void setPublicIpAddress(java.lang.String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.public java.lang.String getPublicIpAddress()
The public IP address of the instance.
public Instance withPublicIpAddress(java.lang.String publicIpAddress)
The public IP address of the instance.
publicIpAddress
- The public IP address of the instance.public void setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name of the instance.
privateDnsName
- The private DNS name of the instance.public java.lang.String getPrivateDnsName()
The private DNS name of the instance.
public Instance withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name of the instance.
privateDnsName
- The private DNS name of the instance.public void setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the instance.
privateIpAddress
- The private IP address of the instance.public java.lang.String getPrivateIpAddress()
The private IP address of the instance.
public Instance withPrivateIpAddress(java.lang.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(java.lang.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 java.lang.String getInstanceGroupId()
The identifier of the instance group to which this instance belongs.
public Instance withInstanceGroupId(java.lang.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 java.util.List<EbsVolume> getEbsVolumes()
The list of EBS volumes that are attached to this instance.
public void setEbsVolumes(java.util.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(java.util.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 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 Instance clone()
clone
in class java.lang.Object