@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.AssetState
public String getState()
The current status of the asset.
AssetState
public AssetStatus withState(String state)
The current status of the asset.
state
- The current status of the asset.AssetState
public AssetStatus withState(AssetState state)
The current status of the asset.
state
- The current status of the asset.AssetState
public 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 Object
Object.toString()
public AssetStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.