@Stability(value=Stable)
public static interface CfnAssetModel.PropertyTypeProperty
extends software.amazon.jsii.JsiiSerializable
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.iotsitewise.*;
PropertyTypeProperty propertyTypeProperty = PropertyTypeProperty.builder()
.typeName("typeName")
// the properties below are optional
.attribute(AttributeProperty.builder()
.defaultValue("defaultValue")
.build())
.metric(MetricProperty.builder()
.expression("expression")
.variables(List.of(ExpressionVariableProperty.builder()
.name("name")
.value(VariableValueProperty.builder()
.propertyLogicalId("propertyLogicalId")
// the properties below are optional
.hierarchyLogicalId("hierarchyLogicalId")
.build())
.build()))
.window(MetricWindowProperty.builder()
.tumbling(TumblingWindowProperty.builder()
.interval("interval")
// the properties below are optional
.offset("offset")
.build())
.build())
.build())
.transform(TransformProperty.builder()
.expression("expression")
.variables(List.of(ExpressionVariableProperty.builder()
.name("name")
.value(VariableValueProperty.builder()
.propertyLogicalId("propertyLogicalId")
// the properties below are optional
.hierarchyLogicalId("hierarchyLogicalId")
.build())
.build()))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAssetModel.PropertyTypeProperty.Builder
A builder for
CfnAssetModel.PropertyTypeProperty |
static class |
CfnAssetModel.PropertyTypeProperty.Jsii$Proxy
An implementation for
CfnAssetModel.PropertyTypeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAssetModel.PropertyTypeProperty.Builder |
builder() |
default Object |
getAttribute()
Specifies an asset attribute property.
|
default Object |
getMetric()
Specifies an asset metric property.
|
default Object |
getTransform()
Specifies an asset transform property.
|
String |
getTypeName()
The type of property type, which can be one of `Attribute` , `Measurement` , `Metric` , or `Transform` .
|
@Stability(value=Stable) @NotNull String getTypeName()
@Stability(value=Stable) @Nullable default Object getAttribute()
An attribute generally contains static information, such as the serial number of an industrial IoT wind turbine.
This is required if the TypeName is Attribute and has a DefaultValue .
@Stability(value=Stable) @Nullable default Object getMetric()
A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
This is required if the TypeName is Metric .
@Stability(value=Stable) @Nullable default Object getTransform()
A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
This is required if the TypeName is Transform .
@Stability(value=Stable) static CfnAssetModel.PropertyTypeProperty.Builder builder()
Copyright © 2022. All rights reserved.