@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Instance extends Object implements Serializable, Cloneable
The ID of an EC2 instance.
Constructor and Description |
---|
Instance()
Default constructor for Instance object.
|
Instance(String instanceId)
Constructs a new Instance object.
|
Modifier and Type | Method and Description |
---|---|
Instance |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceId()
The instance ID.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The instance ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Instance |
withInstanceId(String instanceId)
The instance ID.
|
public Instance()
public Instance(String instanceId)
instanceId
- The instance ID.public void setInstanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.public String getInstanceId()
The instance ID.
public Instance withInstanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.