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
StatusName
public void setName(String name)
Constraints:
Allowed Values: reachability
name
- The type of instance status.StatusName
public 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.StatusName
public void setName(StatusName name)
Constraints:
Allowed Values: reachability
name
- The type of instance status.StatusName
public 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.StatusName
public String getStatus()
Constraints:
Allowed Values: passed, failed, insufficient-data, initializing
StatusType
public void setStatus(String status)
Constraints:
Allowed Values: passed, failed, insufficient-data, initializing
status
- The status.StatusType
public 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.StatusType
public void setStatus(StatusType status)
Constraints:
Allowed Values: passed, failed, insufficient-data, initializing
status
- The status.StatusType
public 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.StatusType
public 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 Object
Object.toString()
public InstanceStatusDetails clone()
Copyright © 2015. All rights reserved.