@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Instance extends Object implements Serializable, Cloneable
The description of an Amazon EC2 instance.
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
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 void setId(String id)
The ID of the Amazon EC2 instance.
id
- The ID of the Amazon EC2 instance.public String getId()
The ID of the Amazon EC2 instance.
public Instance withId(String id)
The ID of the Amazon EC2 instance.
id
- The ID of the Amazon EC2 instance.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.