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()booleanThe 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.inthashCode()voidsetEbsVolumes(Collection<EbsVolume> ebsVolumes) The list of EBS volumes that are attached to this instance.voidsetEc2InstanceId(String ec2InstanceId) The unique identifier of the instance in Amazon EC2.voidThe unique identifier for the instance in Amazon EMR.voidsetInstanceGroupId(String instanceGroupId) The identifier of the instance group to which this instance belongs.voidsetPrivateDnsName(String privateDnsName) The private DNS name of the instance.voidsetPrivateIpAddress(String privateIpAddress) The private IP address of the instance.voidsetPublicDnsName(String publicDnsName) The public DNS name of the instance.voidsetPublicIpAddress(String publicIpAddress) The public IP address of the instance.voidsetStatus(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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
equals
-
hashCode
-
clone
-