public class Instance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The description of an Amazon EC2 instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id
The ID of the Amazon EC2 instance.
|
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
The ID of the Amazon EC2 instance.
|
int |
hashCode() |
void |
setId(java.lang.String id)
The ID of the Amazon EC2 instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Instance |
withId(java.lang.String id)
The ID of the Amazon EC2 instance.
|
public void setId(java.lang.String id)
The ID of the Amazon EC2 instance.
id
- The ID of the Amazon EC2 instance.public java.lang.String getId()
The ID of the Amazon EC2 instance.
public Instance withId(java.lang.String id)
The ID of the Amazon EC2 instance.
id
- The ID of the Amazon EC2 instance.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Instance clone()
clone
in class java.lang.Object