public class Instance extends Object implements Serializable
Represents an EC2 instance provisioned as part of cluster.
| Constructor and Description | 
|---|
Instance()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)  | 
String | 
getEc2InstanceId()
The unique identifier of the instance in Amazon EC2. 
 | 
String | 
getId()
The unique identifier for the instance in Amazon EMR. 
 | 
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 | 
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 | 
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 | 
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 | 
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 String getId()
public void setId(String id)
id - The unique identifier for the instance in Amazon EMR.public Instance withId(String id)
Returns a reference to this object so that method calls can be chained together.
id - The unique identifier for the instance in Amazon EMR.public String getEc2InstanceId()
public void setEc2InstanceId(String ec2InstanceId)
ec2InstanceId - The unique identifier of the instance in Amazon EC2.public Instance withEc2InstanceId(String ec2InstanceId)
Returns a reference to this object so that method calls can be chained together.
ec2InstanceId - The unique identifier of the instance in Amazon EC2.public String getPublicDnsName()
public void setPublicDnsName(String publicDnsName)
publicDnsName - The public DNS name of the instance.public Instance withPublicDnsName(String publicDnsName)
Returns a reference to this object so that method calls can be chained together.
publicDnsName - The public DNS name of the instance.public String getPublicIpAddress()
public void setPublicIpAddress(String publicIpAddress)
publicIpAddress - The public IP address of the instance.public Instance withPublicIpAddress(String publicIpAddress)
Returns a reference to this object so that method calls can be chained together.
publicIpAddress - The public IP address of the instance.public String getPrivateDnsName()
public void setPrivateDnsName(String privateDnsName)
privateDnsName - The private DNS name of the instance.public Instance withPrivateDnsName(String privateDnsName)
Returns a reference to this object so that method calls can be chained together.
privateDnsName - The private DNS name of the instance.public String getPrivateIpAddress()
public void setPrivateIpAddress(String privateIpAddress)
privateIpAddress - The private IP address of the instance.public Instance withPrivateIpAddress(String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress - The private IP address of the instance.public InstanceStatus getStatus()
public void setStatus(InstanceStatus status)
status - The current status of the instance.public Instance withStatus(InstanceStatus status)
Returns a reference to this object so that method calls can be chained together.
status - The current status of the instance.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.