public class InstanceStatusDetails
extends java.lang.Object
implements java.io.Serializable
Describes the instance status.
| Constructor and Description | 
|---|
| InstanceStatusDetails() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public java.lang.String getName()
 Constraints:
 Allowed Values: reachability
StatusNamepublic void setName(java.lang.String name)
 Constraints:
 Allowed Values: reachability
name - The type of instance status.StatusNamepublic InstanceStatusDetails withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: reachability
name - The type of instance status.StatusNamepublic void setName(StatusName name)
 Constraints:
 Allowed Values: reachability
name - The type of instance status.StatusNamepublic InstanceStatusDetails withName(StatusName name)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: reachability
name - The type of instance status.StatusNamepublic java.lang.String getStatus()
 Constraints:
 Allowed Values: passed, failed, insufficient-data, initializing
StatusTypepublic void setStatus(java.lang.String status)
 Constraints:
 Allowed Values: passed, failed, insufficient-data, initializing
status - The status.StatusTypepublic InstanceStatusDetails withStatus(java.lang.String status)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: passed, failed, insufficient-data, initializing
status - The status.StatusTypepublic void setStatus(StatusType status)
 Constraints:
 Allowed Values: passed, failed, insufficient-data, initializing
status - The status.StatusTypepublic InstanceStatusDetails withStatus(StatusType status)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: passed, failed, insufficient-data, initializing
status - The status.StatusTypepublic java.util.Date getImpairedSince()
public void setImpairedSince(java.util.Date impairedSince)
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.public InstanceStatusDetails withImpairedSince(java.util.Date impairedSince)
Returns a reference to this object so that method calls can be chained together.
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.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.