Class Instance
- All Implemented Interfaces:
Serializable
,Cloneable
Represents an EC2 instance provisioned as part of cluster.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The list of EBS volumes that are attached to this instance.The unique identifier of the instance in Amazon EC2.getId()
The unique identifier for the instance in Amazon EMR.The identifier of the instance group to which this instance belongs.The private DNS name of the instance.The private IP address of the instance.The public DNS name of the instance.The public IP address of the instance.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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withEbsVolumes
(EbsVolume... ebsVolumes) The list of EBS volumes that are attached to this instance.withEbsVolumes
(Collection<EbsVolume> ebsVolumes) The list of EBS volumes that are attached to this instance.withEc2InstanceId
(String ec2InstanceId) The unique identifier of the instance in Amazon EC2.The unique identifier for the instance in Amazon EMR.withInstanceGroupId
(String instanceGroupId) The identifier of the instance group to which this instance belongs.withPrivateDnsName
(String privateDnsName) The private DNS name of the instance.withPrivateIpAddress
(String privateIpAddress) The private IP address of the instance.withPublicDnsName
(String publicDnsName) The public DNS name of the instance.withPublicIpAddress
(String publicIpAddress) The public IP address of the instance.withStatus
(InstanceStatus status) The current status of the instance.
-
Constructor Details
-
Instance
public Instance()
-
-
Method Details
-
setId
The unique identifier for the instance in Amazon EMR.
- Parameters:
id
- The unique identifier for the instance in Amazon EMR.
-
getId
The unique identifier for the instance in Amazon EMR.
- Returns:
- The unique identifier for the instance in Amazon EMR.
-
withId
The unique identifier for the instance in Amazon EMR.
- Parameters:
id
- The unique identifier for the instance in Amazon EMR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEc2InstanceId
The unique identifier of the instance in Amazon EC2.
- Parameters:
ec2InstanceId
- The unique identifier of the instance in Amazon EC2.
-
getEc2InstanceId
The unique identifier of the instance in Amazon EC2.
- Returns:
- The unique identifier of the instance in Amazon EC2.
-
withEc2InstanceId
The unique identifier of the instance in Amazon EC2.
- Parameters:
ec2InstanceId
- The unique identifier of the instance in Amazon EC2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPublicDnsName
The public DNS name of the instance.
- Parameters:
publicDnsName
- The public DNS name of the instance.
-
getPublicDnsName
The public DNS name of the instance.
- Returns:
- The public DNS name of the instance.
-
withPublicDnsName
The public DNS name of the instance.
- Parameters:
publicDnsName
- The public DNS name of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPublicIpAddress
The public IP address of the instance.
- Parameters:
publicIpAddress
- The public IP address of the instance.
-
getPublicIpAddress
The public IP address of the instance.
- Returns:
- The public IP address of the instance.
-
withPublicIpAddress
The public IP address of the instance.
- Parameters:
publicIpAddress
- The public IP address of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateDnsName
The private DNS name of the instance.
- Parameters:
privateDnsName
- The private DNS name of the instance.
-
getPrivateDnsName
The private DNS name of the instance.
- Returns:
- The private DNS name of the instance.
-
withPrivateDnsName
The private DNS name of the instance.
- Parameters:
privateDnsName
- The private DNS name of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIpAddress
The private IP address of the instance.
- Parameters:
privateIpAddress
- The private IP address of the instance.
-
getPrivateIpAddress
The private IP address of the instance.
- Returns:
- The private IP address of the instance.
-
withPrivateIpAddress
The private IP address of the instance.
- Parameters:
privateIpAddress
- The private IP address of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The current status of the instance.
- Parameters:
status
- The current status of the instance.
-
getStatus
The current status of the instance.
- Returns:
- The current status of the instance.
-
withStatus
The current status of the instance.
- Parameters:
status
- The current status of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceGroupId
The identifier of the instance group to which this instance belongs.
- Parameters:
instanceGroupId
- The identifier of the instance group to which this instance belongs.
-
getInstanceGroupId
The identifier of the instance group to which this instance belongs.
- Returns:
- The identifier of the instance group to which this instance belongs.
-
withInstanceGroupId
The identifier of the instance group to which this instance belongs.
- Parameters:
instanceGroupId
- The identifier of the instance group to which this instance belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEbsVolumes
The list of EBS volumes that are attached to this instance.
- Returns:
- The list of EBS volumes that are attached to this instance.
-
setEbsVolumes
The list of EBS volumes that are attached to this instance.
- Parameters:
ebsVolumes
- The list of EBS volumes that are attached to this instance.
-
withEbsVolumes
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)
orwithEbsVolumes(java.util.Collection)
if you want to override the existing values.- Parameters:
ebsVolumes
- The list of EBS volumes that are attached to this instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEbsVolumes
The list of EBS volumes that are attached to this instance.
- Parameters:
ebsVolumes
- The list of EBS volumes that are attached to this instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-