@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceState extends Object implements Serializable, Cloneable
Describes the virtual private server (or instance) status.
Constructor and Description |
---|
InstanceState() |
Modifier and Type | Method and Description |
---|---|
InstanceState |
clone() |
boolean |
equals(Object obj) |
Integer |
getCode()
The status code for the instance.
|
String |
getName()
The state of the instance (e.g.,
running or pending ). |
int |
hashCode() |
void |
setCode(Integer code)
The status code for the instance.
|
void |
setName(String name)
The state of the instance (e.g.,
running or pending ). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstanceState |
withCode(Integer code)
The status code for the instance.
|
InstanceState |
withName(String name)
The state of the instance (e.g.,
running or pending ). |
public void setCode(Integer code)
The status code for the instance.
code
- The status code for the instance.public Integer getCode()
The status code for the instance.
public InstanceState withCode(Integer code)
The status code for the instance.
code
- The status code for the instance.public void setName(String name)
The state of the instance (e.g., running
or pending
).
name
- The state of the instance (e.g., running
or pending
).public String getName()
The state of the instance (e.g., running
or pending
).
running
or pending
).public InstanceState withName(String name)
The state of the instance (e.g., running
or pending
).
name
- The state of the instance (e.g., running
or pending
).public String toString()
toString
in class Object
Object.toString()
public InstanceState clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.