com.amazonaws.services.ec2.model
Class InstanceStatus

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

public class InstanceStatus
extends Object

Represents the status of an Amazon EC2 instance.


Constructor Summary
InstanceStatus()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          The Amazon EC2 instance's availability zone.
 List<InstanceStatusEvent> getEvents()
          Events that affect the status of the associated Amazon EC2 instance.
 String getInstanceId()
          The ID of the Amazon EC2 instance.
 InstanceState getInstanceState()
          Represents the state of an Amazon EC2 instance.
 InstanceStatusSummary getInstanceStatus()
          Returns the value of the InstanceStatus property for this object.
 InstanceStatusSummary getSystemStatus()
          Returns the value of the SystemStatus property for this object.
 int hashCode()
           
 void setAvailabilityZone(String availabilityZone)
          The Amazon EC2 instance's availability zone.
 void setEvents(Collection<InstanceStatusEvent> events)
          Events that affect the status of the associated Amazon EC2 instance.
 void setInstanceId(String instanceId)
          The ID of the Amazon EC2 instance.
 void setInstanceState(InstanceState instanceState)
          Represents the state of an Amazon EC2 instance.
 void setInstanceStatus(InstanceStatusSummary instanceStatus)
          Sets the value of the InstanceStatus property for this object.
 void setSystemStatus(InstanceStatusSummary systemStatus)
          Sets the value of the SystemStatus property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceStatus withAvailabilityZone(String availabilityZone)
          The Amazon EC2 instance's availability zone.
 InstanceStatus withEvents(Collection<InstanceStatusEvent> events)
          Events that affect the status of the associated Amazon EC2 instance.
 InstanceStatus withEvents(InstanceStatusEvent... events)
          Events that affect the status of the associated Amazon EC2 instance.
 InstanceStatus withInstanceId(String instanceId)
          The ID of the Amazon EC2 instance.
 InstanceStatus withInstanceState(InstanceState instanceState)
          Represents the state of an Amazon EC2 instance.
 InstanceStatus withInstanceStatus(InstanceStatusSummary instanceStatus)
          Sets the value of the InstanceStatus property for this object.
 InstanceStatus withSystemStatus(InstanceStatusSummary systemStatus)
          Sets the value of the SystemStatus property for this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceStatus

public InstanceStatus()
Method Detail

getInstanceId

public String getInstanceId()
The ID of the Amazon EC2 instance.

Returns:
The ID of the Amazon EC2 instance.

setInstanceId

public void setInstanceId(String instanceId)
The ID of the Amazon EC2 instance.

Parameters:
instanceId - The ID of the Amazon EC2 instance.

withInstanceId

public InstanceStatus withInstanceId(String instanceId)
The ID of the Amazon EC2 instance.

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

Parameters:
instanceId - The ID of the Amazon EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public String getAvailabilityZone()
The Amazon EC2 instance's availability zone.

Returns:
The Amazon EC2 instance's availability zone.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
The Amazon EC2 instance's availability zone.

Parameters:
availabilityZone - The Amazon EC2 instance's availability zone.

withAvailabilityZone

public InstanceStatus withAvailabilityZone(String availabilityZone)
The Amazon EC2 instance's availability zone.

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

Parameters:
availabilityZone - The Amazon EC2 instance's availability zone.
Returns:
A reference to this updated object so that method calls can be chained together.

getEvents

public List<InstanceStatusEvent> getEvents()
Events that affect the status of the associated Amazon EC2 instance.

Returns:
Events that affect the status of the associated Amazon EC2 instance.

setEvents

public void setEvents(Collection<InstanceStatusEvent> events)
Events that affect the status of the associated Amazon EC2 instance.

Parameters:
events - Events that affect the status of the associated Amazon EC2 instance.

withEvents

public InstanceStatus withEvents(InstanceStatusEvent... events)
Events that affect the status of the associated Amazon EC2 instance.

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

Parameters:
events - Events that affect the status of the associated Amazon EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.

withEvents

public InstanceStatus withEvents(Collection<InstanceStatusEvent> events)
Events that affect the status of the associated Amazon EC2 instance.

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

Parameters:
events - Events that affect the status of the associated Amazon EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceState

public InstanceState getInstanceState()
Represents the state of an Amazon EC2 instance.

Returns:
Represents the state of an Amazon EC2 instance.

setInstanceState

public void setInstanceState(InstanceState instanceState)
Represents the state of an Amazon EC2 instance.

Parameters:
instanceState - Represents the state of an Amazon EC2 instance.

withInstanceState

public InstanceStatus withInstanceState(InstanceState instanceState)
Represents the state of an Amazon EC2 instance.

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

Parameters:
instanceState - Represents the state of an Amazon EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getSystemStatus

public InstanceStatusSummary getSystemStatus()
Returns the value of the SystemStatus property for this object.

Returns:
The value of the SystemStatus property for this object.

setSystemStatus

public void setSystemStatus(InstanceStatusSummary systemStatus)
Sets the value of the SystemStatus property for this object.

Parameters:
systemStatus - The new value for the SystemStatus property for this object.

withSystemStatus

public InstanceStatus withSystemStatus(InstanceStatusSummary systemStatus)
Sets the value of the SystemStatus property for this object.

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

Parameters:
systemStatus - The new value for the SystemStatus property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceStatus

public InstanceStatusSummary getInstanceStatus()
Returns the value of the InstanceStatus property for this object.

Returns:
The value of the InstanceStatus property for this object.

setInstanceStatus

public void setInstanceStatus(InstanceStatusSummary instanceStatus)
Sets the value of the InstanceStatus property for this object.

Parameters:
instanceStatus - The new value for the InstanceStatus property for this object.

withInstanceStatus

public InstanceStatus withInstanceStatus(InstanceStatusSummary instanceStatus)
Sets the value of the InstanceStatus property for this object.

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

Parameters:
instanceStatus - The new value for the InstanceStatus property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

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.