com.amazonaws.services.elasticmapreduce.model
Class Instance

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.Instance
All Implemented Interfaces:
Serializable

public class Instance
extends Object
implements Serializable

Represents an EC2 instance provisioned as part of cluster.

See Also:
Serialized Form

Constructor Summary
Instance()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

public Instance()
Method Detail

getId

public String getId()
The unique identifier for the instance in Amazon EMR.

Returns:
The unique identifier for the instance in Amazon EMR.

setId

public void setId(String id)
The unique identifier for the instance in Amazon EMR.

Parameters:
id - The unique identifier for the instance in Amazon EMR.

withId

public Instance withId(String id)
The unique identifier for the instance in Amazon EMR.

Returns a reference to this object so that method calls can be chained together.

Parameters:
id - The unique identifier for the instance in Amazon EMR.
Returns:
A reference to this updated object so that method calls can be chained together.

getEc2InstanceId

public String getEc2InstanceId()
The unique identifier of the instance in Amazon EC2.

Returns:
The unique identifier of the instance in Amazon EC2.

setEc2InstanceId

public void setEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.

Parameters:
ec2InstanceId - The unique identifier of the instance in Amazon EC2.

withEc2InstanceId

public Instance withEc2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ec2InstanceId - The unique identifier of the instance in Amazon EC2.
Returns:
A reference to this updated object so that method calls can be chained together.

getPublicDnsName

public String getPublicDnsName()
The public DNS name of the instance.

Returns:
The public DNS name of the instance.

setPublicDnsName

public void setPublicDnsName(String publicDnsName)
The public DNS name of the instance.

Parameters:
publicDnsName - The public DNS name of the instance.

withPublicDnsName

public Instance withPublicDnsName(String publicDnsName)
The public DNS name of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
publicDnsName - The public DNS name of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getPublicIpAddress

public String getPublicIpAddress()
The public IP address of the instance.

Returns:
The public IP address of the instance.

setPublicIpAddress

public void setPublicIpAddress(String publicIpAddress)
The public IP address of the instance.

Parameters:
publicIpAddress - The public IP address of the instance.

withPublicIpAddress

public Instance withPublicIpAddress(String publicIpAddress)
The public IP address of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
publicIpAddress - The public IP address of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateDnsName

public String getPrivateDnsName()
The private DNS name of the instance.

Returns:
The private DNS name of the instance.

setPrivateDnsName

public void setPrivateDnsName(String privateDnsName)
The private DNS name of the instance.

Parameters:
privateDnsName - The private DNS name of the instance.

withPrivateDnsName

public Instance withPrivateDnsName(String privateDnsName)
The private DNS name of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateDnsName - The private DNS name of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateIpAddress

public String getPrivateIpAddress()
The private IP address of the instance.

Returns:
The private IP address of the instance.

setPrivateIpAddress

public void setPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.

Parameters:
privateIpAddress - The private IP address of the instance.

withPrivateIpAddress

public Instance withPrivateIpAddress(String privateIpAddress)
The private IP address of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddress - The private IP address of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public InstanceStatus getStatus()
The current status of the instance.

Returns:
The current status of the instance.

setStatus

public void setStatus(InstanceStatus status)
The current status of the instance.

Parameters:
status - The current status of the instance.

withStatus

public Instance withStatus(InstanceStatus status)
The current status of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
status - The current status of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.