@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetStatus extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the current status of an asset. For more information, see Asset and model states in the IoT SiteWise User Guide.
| Constructor and Description |
|---|
AssetStatus() |
| Modifier and Type | Method and Description |
|---|---|
AssetStatus |
clone() |
boolean |
equals(Object obj) |
ErrorDetails |
getError()
Contains associated error information, if any.
|
String |
getState()
The current status of the asset.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setError(ErrorDetails error)
Contains associated error information, if any.
|
void |
setState(String state)
The current status of the asset.
|
String |
toString()
Returns a string representation of this object.
|
AssetStatus |
withError(ErrorDetails error)
Contains associated error information, if any.
|
AssetStatus |
withState(AssetState state)
The current status of the asset.
|
AssetStatus |
withState(String state)
The current status of the asset.
|
public void setState(String state)
The current status of the asset.
state - The current status of the asset.AssetStatepublic String getState()
The current status of the asset.
AssetStatepublic AssetStatus withState(String state)
The current status of the asset.
state - The current status of the asset.AssetStatepublic AssetStatus withState(AssetState state)
The current status of the asset.
state - The current status of the asset.AssetStatepublic void setError(ErrorDetails error)
Contains associated error information, if any.
error - Contains associated error information, if any.public ErrorDetails getError()
Contains associated error information, if any.
public AssetStatus withError(ErrorDetails error)
Contains associated error information, if any.
error - Contains associated error information, if any.public String toString()
toString in class ObjectObject.toString()public AssetStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.