@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetPropertyVariant extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains an asset property value. For more information, see Variant in the AWS IoT SiteWise API Reference.
You must use expressions for all parameters in AssetPropertyVariant
. 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
integerValue
parameter can be '100'
.
For references, you must specify either variables or parameters. For example, the value for the
booleanValue
parameter can be $variable.offline
.
For a substitution template, you must use ${}
, and the template must be in single quotes. A substitution
template can also contain a combination of literals, operators, functions, references, and substitution templates.
In the following example, the value for the doubleValue
parameter uses a substitution template.
'${$input.TemperatureInput.sensorData.temperature * 6 / 5 + 32}'
For more information, see Expressions in the AWS IoT Events Developer Guide.
You must specify one of the following value types, depending on the dataType
of the specified asset
property. For more information, see AssetProperty in the
AWS IoT SiteWise API Reference.
Constructor and Description |
---|
AssetPropertyVariant() |
Modifier and Type | Method and Description |
---|---|
AssetPropertyVariant |
clone() |
boolean |
equals(Object obj) |
String |
getBooleanValue()
The asset property value is a Boolean value that must be
'TRUE' or 'FALSE' . |
String |
getDoubleValue()
The asset property value is a double.
|
String |
getIntegerValue()
The asset property value is an integer.
|
String |
getStringValue()
The asset property value is a string.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBooleanValue(String booleanValue)
The asset property value is a Boolean value that must be
'TRUE' or 'FALSE' . |
void |
setDoubleValue(String doubleValue)
The asset property value is a double.
|
void |
setIntegerValue(String integerValue)
The asset property value is an integer.
|
void |
setStringValue(String stringValue)
The asset property value is a string.
|
String |
toString()
Returns a string representation of this object.
|
AssetPropertyVariant |
withBooleanValue(String booleanValue)
The asset property value is a Boolean value that must be
'TRUE' or 'FALSE' . |
AssetPropertyVariant |
withDoubleValue(String doubleValue)
The asset property value is a double.
|
AssetPropertyVariant |
withIntegerValue(String integerValue)
The asset property value is an integer.
|
AssetPropertyVariant |
withStringValue(String stringValue)
The asset property value is a string.
|
public void setStringValue(String stringValue)
The asset property value is a string. You must use an expression, and the evaluated result should be a string.
stringValue
- The asset property value is a string. You must use an expression, and the evaluated result should be a
string.public String getStringValue()
The asset property value is a string. You must use an expression, and the evaluated result should be a string.
public AssetPropertyVariant withStringValue(String stringValue)
The asset property value is a string. You must use an expression, and the evaluated result should be a string.
stringValue
- The asset property value is a string. You must use an expression, and the evaluated result should be a
string.public void setIntegerValue(String integerValue)
The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
integerValue
- The asset property value is an integer. You must use an expression, and the evaluated result should be an
integer.public String getIntegerValue()
The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
public AssetPropertyVariant withIntegerValue(String integerValue)
The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
integerValue
- The asset property value is an integer. You must use an expression, and the evaluated result should be an
integer.public void setDoubleValue(String doubleValue)
The asset property value is a double. You must use an expression, and the evaluated result should be a double.
doubleValue
- The asset property value is a double. You must use an expression, and the evaluated result should be a
double.public String getDoubleValue()
The asset property value is a double. You must use an expression, and the evaluated result should be a double.
public AssetPropertyVariant withDoubleValue(String doubleValue)
The asset property value is a double. You must use an expression, and the evaluated result should be a double.
doubleValue
- The asset property value is a double. You must use an expression, and the evaluated result should be a
double.public void setBooleanValue(String booleanValue)
The asset property value is a Boolean value that must be 'TRUE'
or 'FALSE'
. You must
use an expression, and the evaluated result should be a Boolean value.
booleanValue
- The asset property value is a Boolean value that must be 'TRUE'
or 'FALSE'
. You
must use an expression, and the evaluated result should be a Boolean value.public String getBooleanValue()
The asset property value is a Boolean value that must be 'TRUE'
or 'FALSE'
. You must
use an expression, and the evaluated result should be a Boolean value.
'TRUE'
or 'FALSE'
. You
must use an expression, and the evaluated result should be a Boolean value.public AssetPropertyVariant withBooleanValue(String booleanValue)
The asset property value is a Boolean value that must be 'TRUE'
or 'FALSE'
. You must
use an expression, and the evaluated result should be a Boolean value.
booleanValue
- The asset property value is a Boolean value that must be 'TRUE'
or 'FALSE'
. You
must use an expression, and the evaluated result should be a Boolean value.public String toString()
toString
in class Object
Object.toString()
public AssetPropertyVariant clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.