@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetPropertyValue extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference.
You must use expressions for all parameters in AssetPropertyValue
. The expressions accept literals,
operators, functions, references, and substitution templates.
Examples
For literal values, the expressions must contain single quotes. For example, the value for the quality
parameter can be 'GOOD'
.
For references, you must specify either variables or input values. For example, the value for the
quality
parameter can be $input.TemperatureInput.sensorData.quality
.
For more information, see Expressions in the AWS IoT Events Developer Guide.
Constructor and Description |
---|
AssetPropertyValue() |
Modifier and Type | Method and Description |
---|---|
AssetPropertyValue |
clone() |
boolean |
equals(Object obj) |
String |
getQuality()
The quality of the asset property value.
|
AssetPropertyTimestamp |
getTimestamp()
The timestamp associated with the asset property value.
|
AssetPropertyVariant |
getValue()
The value to send to an asset property.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setQuality(String quality)
The quality of the asset property value.
|
void |
setTimestamp(AssetPropertyTimestamp timestamp)
The timestamp associated with the asset property value.
|
void |
setValue(AssetPropertyVariant value)
The value to send to an asset property.
|
String |
toString()
Returns a string representation of this object.
|
AssetPropertyValue |
withQuality(String quality)
The quality of the asset property value.
|
AssetPropertyValue |
withTimestamp(AssetPropertyTimestamp timestamp)
The timestamp associated with the asset property value.
|
AssetPropertyValue |
withValue(AssetPropertyVariant value)
The value to send to an asset property.
|
public void setValue(AssetPropertyVariant value)
The value to send to an asset property.
value
- The value to send to an asset property.public AssetPropertyVariant getValue()
The value to send to an asset property.
public AssetPropertyValue withValue(AssetPropertyVariant value)
The value to send to an asset property.
value
- The value to send to an asset property.public void setTimestamp(AssetPropertyTimestamp timestamp)
The timestamp associated with the asset property value. The default is the current event time.
timestamp
- The timestamp associated with the asset property value. The default is the current event time.public AssetPropertyTimestamp getTimestamp()
The timestamp associated with the asset property value. The default is the current event time.
public AssetPropertyValue withTimestamp(AssetPropertyTimestamp timestamp)
The timestamp associated with the asset property value. The default is the current event time.
timestamp
- The timestamp associated with the asset property value. The default is the current event time.public void setQuality(String quality)
The quality of the asset property value. The value must be 'GOOD'
, 'BAD'
, or
'UNCERTAIN'
.
quality
- The quality of the asset property value. The value must be 'GOOD'
, 'BAD'
, or
'UNCERTAIN'
.public String getQuality()
The quality of the asset property value. The value must be 'GOOD'
, 'BAD'
, or
'UNCERTAIN'
.
'GOOD'
, 'BAD'
, or
'UNCERTAIN'
.public AssetPropertyValue withQuality(String quality)
The quality of the asset property value. The value must be 'GOOD'
, 'BAD'
, or
'UNCERTAIN'
.
quality
- The quality of the asset property value. The value must be 'GOOD'
, 'BAD'
, or
'UNCERTAIN'
.public String toString()
toString
in class Object
Object.toString()
public AssetPropertyValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.