com.amazonaws.services.elasticbeanstalk.model
Class Instance

java.lang.Object
  extended by com.amazonaws.services.elasticbeanstalk.model.Instance

public class Instance
extends Object

The description of an Amazon EC2 instance.


Constructor Summary
Instance()
          Default constructor for a new Instance object.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          The ID of the Amazon EC2 instance.
 int hashCode()
           
 void setId(String id)
          The ID of the Amazon EC2 instance.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Instance withId(String id)
          The ID of the Amazon EC2 instance.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

public Instance()
Default constructor for a new Instance object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getId

public String getId()
The ID of the Amazon EC2 instance.

Returns:
The ID of the Amazon EC2 instance.

setId

public void setId(String id)
The ID of the Amazon EC2 instance.

Parameters:
id - The ID of the Amazon EC2 instance.

withId

public Instance withId(String id)
The ID of the Amazon EC2 instance.

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

Parameters:
id - The ID of the Amazon EC2 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 © 2010 Amazon Web Services, Inc. All Rights Reserved.