public class Instance extends Object implements Serializable
The description of an Amazon EC2 instance.
Constructor and Description |
---|
Instance()
Default constructor for a new Instance object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Instance()
public String getId()
public void setId(String id)
id
- The ID of the Amazon EC2 instance.public Instance withId(String id)
Returns a reference to this object so that method calls can be chained together.
id
- The ID of the Amazon EC2 instance.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.