Class InstanceState
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceState
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InstanceState extends Object implements Serializable, Cloneable
Describes the current state of the instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceStateclone()booleanequals(Object obj)IntegergetCode()The low byte represents the state.StringgetName()The current state of the instance.inthashCode()voidsetCode(Integer code)The low byte represents the state.voidsetName(InstanceStateName name)The current state of the instance.voidsetName(String name)The current state of the instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceStatewithCode(Integer code)The low byte represents the state.InstanceStatewithName(InstanceStateName name)The current state of the instance.InstanceStatewithName(String name)The current state of the instance.
-
-
-
Method Detail
-
setCode
public void setCode(Integer code)
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0:pending -
16:running -
32:shutting-down -
48:terminated -
64:stopping -
80:stopped
- Parameters:
code- The low byte represents the state. The high byte is an opaque internal value and should be ignored.-
0:pending -
16:running -
32:shutting-down -
48:terminated -
64:stopping -
80:stopped
-
-
-
getCode
public Integer getCode()
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0:pending -
16:running -
32:shutting-down -
48:terminated -
64:stopping -
80:stopped
- Returns:
- The low byte represents the state. The high byte is an opaque
internal value and should be ignored.
-
0:pending -
16:running -
32:shutting-down -
48:terminated -
64:stopping -
80:stopped
-
-
-
withCode
public InstanceState withCode(Integer code)
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
-
0:pending -
16:running -
32:shutting-down -
48:terminated -
64:stopping -
80:stopped
- Parameters:
code- The low byte represents the state. The high byte is an opaque internal value and should be ignored.-
0:pending -
16:running -
32:shutting-down -
48:terminated -
64:stopping -
80:stopped
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setName
public void setName(String name)
The current state of the instance.
- Parameters:
name- The current state of the instance.- See Also:
InstanceStateName
-
getName
public String getName()
The current state of the instance.
- Returns:
- The current state of the instance.
- See Also:
InstanceStateName
-
withName
public InstanceState withName(String name)
The current state of the instance.
- Parameters:
name- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceStateName
-
setName
public void setName(InstanceStateName name)
The current state of the instance.
- Parameters:
name- The current state of the instance.- See Also:
InstanceStateName
-
withName
public InstanceState withName(InstanceStateName name)
The current state of the instance.
- Parameters:
name- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceStateName
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceState clone()
-
-