@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 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.
For parameters that are string data type, you can specify the following options:
Use a string. For example, the doubleValue
value can be '47.9'
.
Use an expression. For example, the doubleValue
value can be
$input.TemperatureInput.sensorData.temperature
.
For more information, see Expressions in the AWS IoT Events Developer Guide.
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 can also specify an expression. If you use an expression, the evaluated result should be a string.
stringValue
- The asset property value is a string. You can also specify an expression. If you use an expression, the
evaluated result should be a string.public String getStringValue()
The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string.
public AssetPropertyVariant withStringValue(String stringValue)
The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string.
stringValue
- The asset property value is a string. You can also specify an expression. If you use an expression, the
evaluated result should be a string.public void setIntegerValue(String integerValue)
The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.
integerValue
- The asset property value is an integer. You can also specify an expression. If you use an expression, the
evaluated result should be an integer.public String getIntegerValue()
The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.
public AssetPropertyVariant withIntegerValue(String integerValue)
The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.
integerValue
- The asset property value is an integer. You can also specify an expression. If you use an expression, the
evaluated result should be an integer.public void setDoubleValue(String doubleValue)
The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.
doubleValue
- The asset property value is a double. You can also specify an expression. If you use an expression, the
evaluated result should be a double.public String getDoubleValue()
The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.
public AssetPropertyVariant withDoubleValue(String doubleValue)
The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.
doubleValue
- The asset property value is a double. You can also specify an expression. If you use an expression, 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 can also
specify an expression. If you use an expression, the evaluated result should be a Boolean value.
booleanValue
- The asset property value is a Boolean value that must be TRUE
or FALSE
. You can
also specify an expression. If you use an expression, 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 can also
specify an expression. If you use an expression, the evaluated result should be a Boolean value.
TRUE
or FALSE
. You can
also specify an expression. If you use an expression, 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 can also
specify an expression. If you use an expression, the evaluated result should be a Boolean value.
booleanValue
- The asset property value is a Boolean value that must be TRUE
or FALSE
. You can
also specify an expression. If you use an expression, 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.