@Stability(value=Stable)
public static interface CfnDetectorModel.AssetPropertyValueProperty
extends software.amazon.jsii.JsiiSerializable
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' .
quality parameter can be $input.TemperatureInput.sensorData.quality .For more information, see Expressions in the AWS IoT Events Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotevents.*;
AssetPropertyValueProperty assetPropertyValueProperty = AssetPropertyValueProperty.builder()
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
// the properties below are optional
.quality("quality")
.timestamp(AssetPropertyTimestampProperty.builder()
.timeInSeconds("timeInSeconds")
// the properties below are optional
.offsetInNanos("offsetInNanos")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDetectorModel.AssetPropertyValueProperty.Builder
A builder for
CfnDetectorModel.AssetPropertyValueProperty |
static class |
CfnDetectorModel.AssetPropertyValueProperty.Jsii$Proxy
An implementation for
CfnDetectorModel.AssetPropertyValueProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDetectorModel.AssetPropertyValueProperty.Builder |
builder() |
default String |
getQuality()
The quality of the asset property value.
|
default Object |
getTimestamp()
The timestamp associated with the asset property value.
|
Object |
getValue()
The value to send to an asset property.
|
@Stability(value=Stable) @NotNull Object getValue()
@Stability(value=Stable) @Nullable default String getQuality()
The value must be 'GOOD' , 'BAD' , or 'UNCERTAIN' .
@Stability(value=Stable) @Nullable default Object getTimestamp()
The default is the current event time.
@Stability(value=Stable) static CfnDetectorModel.AssetPropertyValueProperty.Builder builder()
Copyright © 2022. All rights reserved.