public class InstanceStatusDetails
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the instance status.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
impairedSince
The time when a status check failed.
|
private java.lang.String |
name
The type of instance status.
|
private java.lang.String |
status
The status.
|
Constructor and Description |
---|
InstanceStatusDetails() |
Modifier and Type | Method and Description |
---|---|
InstanceStatusDetails |
clone() |
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.
|
private java.lang.String name
The type of instance status.
private java.lang.String status
The status.
private 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.
public void setName(java.lang.String name)
The type of instance status.
name
- The type of instance status.StatusName
public java.lang.String getName()
The type of instance status.
StatusName
public InstanceStatusDetails withName(java.lang.String name)
The type of instance status.
name
- The type of instance status.StatusName
public void setName(StatusName name)
The type of instance status.
name
- The type of instance status.StatusName
public InstanceStatusDetails withName(StatusName name)
The type of instance status.
name
- The type of instance status.StatusName
public void setStatus(java.lang.String status)
The status.
status
- The status.StatusType
public java.lang.String getStatus()
The status.
StatusType
public InstanceStatusDetails withStatus(java.lang.String status)
The status.
status
- The status.StatusType
public void setStatus(StatusType status)
The status.
status
- The status.StatusType
public InstanceStatusDetails withStatus(StatusType status)
The status.
status
- The status.StatusType
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.
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.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.
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.
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.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceStatusDetails clone()
clone
in class java.lang.Object