public class InstanceStatusDetails extends Object implements Serializable, Cloneable
Describes the instance status.
| Constructor and Description |
|---|
InstanceStatusDetails() |
| Modifier and Type | Method and Description |
|---|---|
InstanceStatusDetails |
clone() |
boolean |
equals(Object obj) |
Date |
getImpairedSince()
The time when a status check failed.
|
String |
getName()
The type of instance status.
|
String |
getStatus()
The status.
|
int |
hashCode() |
void |
setImpairedSince(Date impairedSince)
The time when a status check failed.
|
void |
setName(StatusName name)
The type of instance status.
|
void |
setName(String name)
The type of instance status.
|
void |
setStatus(StatusType status)
The status.
|
void |
setStatus(String status)
The status.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceStatusDetails |
withImpairedSince(Date impairedSince)
The time when a status check failed.
|
InstanceStatusDetails |
withName(StatusName name)
The type of instance status.
|
InstanceStatusDetails |
withName(String name)
The type of instance status.
|
InstanceStatusDetails |
withStatus(StatusType status)
The status.
|
InstanceStatusDetails |
withStatus(String status)
The status.
|
public String getName()
Constraints:
Allowed Values: reachability
StatusNamepublic void setName(String name)
Constraints:
Allowed Values: reachability
name - The type of instance status.StatusNamepublic InstanceStatusDetails withName(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 String getStatus()
Constraints:
Allowed Values: passed, failed, insufficient-data, initializing
StatusTypepublic void setStatus(String status)
Constraints:
Allowed Values: passed, failed, insufficient-data, initializing
status - The status.StatusTypepublic InstanceStatusDetails withStatus(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 Date getImpairedSince()
public void setImpairedSince(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(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 String toString()
toString in class ObjectObject.toString()public InstanceStatusDetails clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.