com.amazonaws.services.ec2.model
Class InstanceStatusDetails

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

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

Describes the instance status.

See Also:
Serialized Form

Constructor Summary
InstanceStatusDetails()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Date getImpairedSince()
          The time when a status check failed.
 java.lang.String getName()
          The type of instance status.
 java.lang.String getStatus()
          The status.
 int hashCode()
           
 void setImpairedSince(java.util.Date impairedSince)
          The time when a status check failed.
 void setName(StatusName name)
          The type of instance status.
 void setName(java.lang.String name)
          The type of instance status.
 void setStatus(StatusType status)
          The status.
 void setStatus(java.lang.String status)
          The status.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceStatusDetails withImpairedSince(java.util.Date impairedSince)
          The time when a status check failed.
 InstanceStatusDetails withName(StatusName name)
          The type of instance status.
 InstanceStatusDetails withName(java.lang.String name)
          The type of instance status.
 InstanceStatusDetails withStatus(StatusType status)
          The status.
 InstanceStatusDetails withStatus(java.lang.String status)
          The status.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceStatusDetails

public InstanceStatusDetails()
Method Detail

getName

public java.lang.String getName()
The type of instance status.

Constraints:
Allowed Values: reachability

Returns:
The type of instance status.
See Also:
StatusName

setName

public void setName(java.lang.String name)
The type of instance status.

Constraints:
Allowed Values: reachability

Parameters:
name - The type of instance status.
See Also:
StatusName

withName

public InstanceStatusDetails withName(java.lang.String name)
The type of instance status.

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

Constraints:
Allowed Values: reachability

Parameters:
name - The type of instance status.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StatusName

setName

public void setName(StatusName name)
The type of instance status.

Constraints:
Allowed Values: reachability

Parameters:
name - The type of instance status.
See Also:
StatusName

withName

public InstanceStatusDetails withName(StatusName name)
The type of instance status.

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

Constraints:
Allowed Values: reachability

Parameters:
name - The type of instance status.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StatusName

getStatus

public java.lang.String getStatus()
The status.

Constraints:
Allowed Values: passed, failed, insufficient-data

Returns:
The status.
See Also:
StatusType

setStatus

public void setStatus(java.lang.String status)
The status.

Constraints:
Allowed Values: passed, failed, insufficient-data

Parameters:
status - The status.
See Also:
StatusType

withStatus

public InstanceStatusDetails withStatus(java.lang.String status)
The status.

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

Constraints:
Allowed Values: passed, failed, insufficient-data

Parameters:
status - The status.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StatusType

setStatus

public void setStatus(StatusType status)
The status.

Constraints:
Allowed Values: passed, failed, insufficient-data

Parameters:
status - The status.
See Also:
StatusType

withStatus

public InstanceStatusDetails withStatus(StatusType status)
The status.

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

Constraints:
Allowed Values: passed, failed, insufficient-data

Parameters:
status - The status.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StatusType

getImpairedSince

public java.util.Date getImpairedSince()
The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.

Returns:
The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.

setImpairedSince

public void setImpairedSince(java.util.Date impairedSince)
The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.

Parameters:
impairedSince - The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.

withImpairedSince

public InstanceStatusDetails withImpairedSince(java.util.Date impairedSince)
The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.

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

Parameters:
impairedSince - The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
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.