@Stability(value=Stable)
public static interface CfnAssetModel.AssetModelPropertyProperty
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.*;
AssetModelPropertyProperty assetModelPropertyProperty = AssetModelPropertyProperty.builder()
.dataType("dataType")
.logicalId("logicalId")
.name("name")
.type(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())
// the properties below are optional
.dataTypeSpec("dataTypeSpec")
.unit("unit")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAssetModel.AssetModelPropertyProperty.Builder
A builder for
CfnAssetModel.AssetModelPropertyProperty |
static class |
CfnAssetModel.AssetModelPropertyProperty.Jsii$Proxy
An implementation for
CfnAssetModel.AssetModelPropertyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAssetModel.AssetModelPropertyProperty.Builder |
builder() |
String |
getDataType()
The data type of the asset model property.
|
default String |
getDataTypeSpec()
The data type of the structure for this property.
|
String |
getLogicalId()
The `LogicalID` of the asset model property.
|
String |
getName()
The name of the asset model property.
|
Object |
getType()
Contains a property type, which can be one of `Attribute` , `Measurement` , `Metric` , or `Transform` .
|
default String |
getUnit()
The unit of the asset model property, such as `Newtons` or `RPM` .
|
@Stability(value=Stable) @NotNull String getDataType()
The value can be STRING , INTEGER , DOUBLE , BOOLEAN , or STRUCT .
@Stability(value=Stable) @NotNull String getLogicalId()
The maximum length is 256 characters, with the pattern [^\\ u0000-\\ u001F\\ u007F]+ .
@Stability(value=Stable) @NotNull String getName()
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+ .
@Stability(value=Stable) @NotNull Object getType()
@Stability(value=Stable) @Nullable default String getDataTypeSpec()
This parameter exists on properties that have the STRUCT data type.
@Stability(value=Stable) @Nullable default String getUnit()
@Stability(value=Stable) static CfnAssetModel.AssetModelPropertyProperty.Builder builder()
Copyright © 2022. All rights reserved.