@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComponentState extends Object implements Serializable, Cloneable, StructuredPojo
A group of fields that describe the current status of components that are no longer active.
Constructor and Description |
---|
ComponentState() |
Modifier and Type | Method and Description |
---|---|
ComponentState |
clone() |
boolean |
equals(Object obj) |
String |
getReason()
Describes how or why the component changed state.
|
String |
getStatus()
The current state of the component.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReason(String reason)
Describes how or why the component changed state.
|
void |
setStatus(String status)
The current state of the component.
|
String |
toString()
Returns a string representation of this object.
|
ComponentState |
withReason(String reason)
Describes how or why the component changed state.
|
ComponentState |
withStatus(ComponentStatus status)
The current state of the component.
|
ComponentState |
withStatus(String status)
The current state of the component.
|
public void setStatus(String status)
The current state of the component.
status
- The current state of the component.ComponentStatus
public String getStatus()
The current state of the component.
ComponentStatus
public ComponentState withStatus(String status)
The current state of the component.
status
- The current state of the component.ComponentStatus
public ComponentState withStatus(ComponentStatus status)
The current state of the component.
status
- The current state of the component.ComponentStatus
public void setReason(String reason)
Describes how or why the component changed state.
reason
- Describes how or why the component changed state.public String getReason()
Describes how or why the component changed state.
public ComponentState withReason(String reason)
Describes how or why the component changed state.
reason
- Describes how or why the component changed state.public String toString()
toString
in class Object
Object.toString()
public ComponentState clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.