com.amazonaws.services.ec2.model
Class InstanceState

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InstanceState
All Implemented Interfaces:
java.io.Serializable

public class InstanceState
extends java.lang.Object
implements java.io.Serializable

Describes the current state of the instance.

See Also:
Serialized Form

Constructor Summary
InstanceState()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getCode()
          The low byte represents the state.
 java.lang.String getName()
          The current state of the instance.
 int hashCode()
           
 void setCode(java.lang.Integer code)
          The low byte represents the state.
 void setName(InstanceStateName name)
          The current state of the instance.
 void setName(java.lang.String name)
          The current state of the instance.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceState withCode(java.lang.Integer code)
          The low byte represents the state.
 InstanceState withName(InstanceStateName name)
          The current state of the instance.
 InstanceState withName(java.lang.String name)
          The current state of the instance.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceState

public InstanceState()
Method Detail

getCode

public java.lang.Integer getCode()
The low byte represents the state. The high byte is an opaque internal value and should be ignored.

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


setCode

public void setCode(java.lang.Integer code)
The low byte represents the state. The high byte is an opaque internal value and should be ignored.

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


withCode

public InstanceState withCode(java.lang.Integer code)
The low byte represents the state. The high byte is an opaque internal value and should be ignored.

Returns a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.

getName

public java.lang.String getName()
The current state of the instance.

Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

Returns:
The current state of the instance.
See Also:
InstanceStateName

setName

public void setName(java.lang.String name)
The current state of the instance.

Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

Parameters:
name - The current state of the instance.
See Also:
InstanceStateName

withName

public InstanceState withName(java.lang.String name)
The current state of the instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

Parameters:
name - The current state of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceStateName

setName

public void setName(InstanceStateName name)
The current state of the instance.

Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

Parameters:
name - The current state of the instance.
See Also:
InstanceStateName

withName

public InstanceState withName(InstanceStateName name)
The current state of the instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: pending, running, shutting-down, terminated, stopping, stopped

Parameters:
name - The current state of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceStateName

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.