com.amazonaws.services.ec2.model
Class InstanceStatus

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

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

Describes the status of an instance.

See Also:
Serialized Form

Constructor Summary
InstanceStatus()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAvailabilityZone()
          The Availability Zone of the instance.
 java.util.List<InstanceStatusEvent> getEvents()
          Extra information regarding events associated with the instance.
 java.lang.String getInstanceId()
          The ID of the instance.
 InstanceState getInstanceState()
          The intended state of the instance.
 InstanceStatusSummary getInstanceStatus()
          Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
 InstanceStatusSummary getSystemStatus()
          Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
 int hashCode()
           
 void setAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone of the instance.
 void setEvents(java.util.Collection<InstanceStatusEvent> events)
          Extra information regarding events associated with the instance.
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance.
 void setInstanceState(InstanceState instanceState)
          The intended state of the instance.
 void setInstanceStatus(InstanceStatusSummary instanceStatus)
          Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
 void setSystemStatus(InstanceStatusSummary systemStatus)
          Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceStatus withAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone of the instance.
 InstanceStatus withEvents(java.util.Collection<InstanceStatusEvent> events)
          Extra information regarding events associated with the instance.
 InstanceStatus withEvents(InstanceStatusEvent... events)
          Extra information regarding events associated with the instance.
 InstanceStatus withInstanceId(java.lang.String instanceId)
          The ID of the instance.
 InstanceStatus withInstanceState(InstanceState instanceState)
          The intended state of the instance.
 InstanceStatus withInstanceStatus(InstanceStatusSummary instanceStatus)
          Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
 InstanceStatus withSystemStatus(InstanceStatusSummary systemStatus)
          Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceStatus

public InstanceStatus()
Method Detail

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public InstanceStatus withInstanceId(java.lang.String instanceId)
The ID of the instance.

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

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

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone of the instance.

Returns:
The Availability Zone of the instance.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.

Parameters:
availabilityZone - The Availability Zone of the instance.

withAvailabilityZone

public InstanceStatus withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.

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

Parameters:
availabilityZone - The Availability Zone of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getEvents

public java.util.List<InstanceStatusEvent> getEvents()
Extra information regarding events associated with the instance.

Returns:
Extra information regarding events associated with the instance.

setEvents

public void setEvents(java.util.Collection<InstanceStatusEvent> events)
Extra information regarding events associated with the instance.

Parameters:
events - Extra information regarding events associated with the instance.

withEvents

public InstanceStatus withEvents(InstanceStatusEvent... events)
Extra information regarding events associated with the instance.

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

Parameters:
events - Extra information regarding events associated with the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

withEvents

public InstanceStatus withEvents(java.util.Collection<InstanceStatusEvent> events)
Extra information regarding events associated with the instance.

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

Parameters:
events - Extra information regarding events associated with the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceState

public InstanceState getInstanceState()
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

Returns:
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

setInstanceState

public void setInstanceState(InstanceState instanceState)
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

Parameters:
instanceState - The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

withInstanceState

public InstanceStatus withInstanceState(InstanceState instanceState)
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

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

Parameters:
instanceState - The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.
Returns:
A reference to this updated object so that method calls can be chained together.

getSystemStatus

public InstanceStatusSummary getSystemStatus()
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

Returns:
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

setSystemStatus

public void setSystemStatus(InstanceStatusSummary systemStatus)
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

Parameters:
systemStatus - Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

withSystemStatus

public InstanceStatus withSystemStatus(InstanceStatusSummary systemStatus)
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

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

Parameters:
systemStatus - Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceStatus

public InstanceStatusSummary getInstanceStatus()
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

Returns:
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

setInstanceStatus

public void setInstanceStatus(InstanceStatusSummary instanceStatus)
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

Parameters:
instanceStatus - Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

withInstanceStatus

public InstanceStatus withInstanceStatus(InstanceStatusSummary instanceStatus)
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

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

Parameters:
instanceStatus - Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
Returns:
A reference to this updated object so that method calls can be chained together.

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.