@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClusterStatus extends Object implements Serializable, Cloneable, StructuredPojo
The detailed status of the cluster.
Constructor and Description |
---|
ClusterStatus() |
Modifier and Type | Method and Description |
---|---|
ClusterStatus |
clone() |
boolean |
equals(Object obj) |
List<ErrorDetail> |
getErrorDetails()
A list of tuples that provides information about the errors that caused a cluster to terminate.
|
String |
getState()
The current state of the cluster.
|
ClusterStateChangeReason |
getStateChangeReason()
The reason for the cluster status change.
|
ClusterTimeline |
getTimeline()
A timeline that represents the status of a cluster over the lifetime of the cluster.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorDetails(Collection<ErrorDetail> errorDetails)
A list of tuples that provides information about the errors that caused a cluster to terminate.
|
void |
setState(ClusterState state)
The current state of the cluster.
|
void |
setState(String state)
The current state of the cluster.
|
void |
setStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
|
void |
setTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
|
String |
toString()
Returns a string representation of this object.
|
ClusterStatus |
withErrorDetails(Collection<ErrorDetail> errorDetails)
A list of tuples that provides information about the errors that caused a cluster to terminate.
|
ClusterStatus |
withErrorDetails(ErrorDetail... errorDetails)
A list of tuples that provides information about the errors that caused a cluster to terminate.
|
ClusterStatus |
withState(ClusterState state)
The current state of the cluster.
|
ClusterStatus |
withState(String state)
The current state of the cluster.
|
ClusterStatus |
withStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
|
ClusterStatus |
withTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
|
public void setState(String state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
public String getState()
The current state of the cluster.
ClusterState
public ClusterStatus withState(String state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
public void setState(ClusterState state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
public ClusterStatus withState(ClusterState state)
The current state of the cluster.
state
- The current state of the cluster.ClusterState
public void setStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
stateChangeReason
- The reason for the cluster status change.public ClusterStateChangeReason getStateChangeReason()
The reason for the cluster status change.
public ClusterStatus withStateChangeReason(ClusterStateChangeReason stateChangeReason)
The reason for the cluster status change.
stateChangeReason
- The reason for the cluster status change.public void setTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
timeline
- A timeline that represents the status of a cluster over the lifetime of the cluster.public ClusterTimeline getTimeline()
A timeline that represents the status of a cluster over the lifetime of the cluster.
public ClusterStatus withTimeline(ClusterTimeline timeline)
A timeline that represents the status of a cluster over the lifetime of the cluster.
timeline
- A timeline that represents the status of a cluster over the lifetime of the cluster.public List<ErrorDetail> getErrorDetails()
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure
can contain up to 10 different ErrorDetail
tuples.
ErrorDetail
tuples.public void setErrorDetails(Collection<ErrorDetail> errorDetails)
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure
can contain up to 10 different ErrorDetail
tuples.
errorDetails
- A list of tuples that provides information about the errors that caused a cluster to terminate. This
structure can contain up to 10 different ErrorDetail
tuples.public ClusterStatus withErrorDetails(ErrorDetail... errorDetails)
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure
can contain up to 10 different ErrorDetail
tuples.
NOTE: This method appends the values to the existing list (if any). Use
setErrorDetails(java.util.Collection)
or withErrorDetails(java.util.Collection)
if you want to
override the existing values.
errorDetails
- A list of tuples that provides information about the errors that caused a cluster to terminate. This
structure can contain up to 10 different ErrorDetail
tuples.public ClusterStatus withErrorDetails(Collection<ErrorDetail> errorDetails)
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure
can contain up to 10 different ErrorDetail
tuples.
errorDetails
- A list of tuples that provides information about the errors that caused a cluster to terminate. This
structure can contain up to 10 different ErrorDetail
tuples.public String toString()
toString
in class Object
Object.toString()
public ClusterStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.