com.amazonaws.services.ec2.model
Class InstanceState

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InstanceState

public class InstanceState
extends Object

Represents the state of an Amazon EC2 instance.


Constructor Summary
InstanceState()
           
 
Method Summary
 boolean equals(Object obj)
           
 Integer getCode()
          A 16-bit unsigned integer.
 String getName()
          The current state of the instance.
 int hashCode()
           
 void setCode(Integer code)
          A 16-bit unsigned integer.
 void setName(InstanceStateName name)
          The current state of the instance.
 void setName(String name)
          The current state of the instance.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceState withCode(Integer code)
          A 16-bit unsigned integer.
 InstanceState withName(InstanceStateName name)
          The current state of the instance.
 InstanceState withName(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 Integer getCode()
A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

Returns:
A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

setCode

public void setCode(Integer code)
A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

Parameters:
code - A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

withCode

public InstanceState withCode(Integer code)
A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.

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

Parameters:
code - A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public 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(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(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 String toString()
Returns a string representation of this object; useful for testing and debugging.

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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