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) |
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 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 String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.