Interface CfnAssetModel.AssetModelPropertyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAssetModel.AssetModelPropertyProperty.Jsii$Proxy
- Enclosing class:
CfnAssetModel
@Stability(Stable)
public static interface CfnAssetModel.AssetModelPropertyProperty
extends software.amazon.jsii.JsiiSerializable
Contains information about an asset model property.
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAssetModel.AssetModelPropertyPropertystatic final classAn implementation forCfnAssetModel.AssetModelPropertyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The data type of the asset model property.default StringThe data type of the structure for this property.TheLogicalIDof the asset model property.getName()The name of the asset model property.getType()Contains a property type, which can be one ofAttribute,Measurement,Metric, orTransform.default StringgetUnit()The unit of the asset model property, such asNewtonsorRPM.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDataType
The data type of the asset model property.The value can be
STRING,INTEGER,DOUBLE,BOOLEAN, orSTRUCT.- See Also:
-
getLogicalId
TheLogicalIDof the asset model property.The maximum length is 256 characters, with the pattern
[^\\u0000-\\u001F\\u007F]+.- See Also:
-
getName
The name of the asset model property.The maximum length is 256 characters with the pattern
[^ -]+.- See Also:
-
getType
Contains a property type, which can be one ofAttribute,Measurement,Metric, orTransform.- See Also:
-
getDataTypeSpec
The data type of the structure for this property.This parameter exists on properties that have the
STRUCTdata type.- See Also:
-
getUnit
The unit of the asset model property, such asNewtonsorRPM.- See Also:
-
builder
-