public class Instance extends Object implements Serializable
The Instance data type.
| Constructor and Description |
|---|
Instance()
Default constructor for a new Instance object.
|
Instance(String instanceId)
Constructs a new Instance object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getInstanceId()
Provides an EC2 instance ID.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
Provides an EC2 instance ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Instance |
withInstanceId(String instanceId)
Provides an EC2 instance ID.
|
public Instance()
public Instance(String instanceId)
instanceId - Provides an EC2 instance ID.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId - Provides an EC2 instance ID.public Instance withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - Provides an EC2 instance ID.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.