public static interface CfnAssetModel.AssetModelPropertyProperty
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() |
java.lang.String |
getDataType()
The data type of the asset model property.
|
default java.lang.String |
getDataTypeSpec()
The data type of the structure for this property.
|
java.lang.String |
getLogicalId()
The `LogicalID` of the asset model property.
|
java.lang.String |
getName()
The name of the asset model property.
|
java.lang.Object |
getType()
Contains a property type, which can be one of `Attribute` , `Measurement` , `Metric` , or `Transform` .
|
default java.lang.String |
getUnit()
The unit of the asset model property, such as `Newtons` or `RPM` .
|
java.lang.String getDataType()
The value can be STRING
, INTEGER
, DOUBLE
, BOOLEAN
, or STRUCT
.
java.lang.String getLogicalId()
The maximum length is 256 characters, with the pattern [^\\ u0000-\\ u001F\\ u007F]+
.
java.lang.String getName()
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+
.
java.lang.Object getType()
default java.lang.String getDataTypeSpec()
This parameter exists on properties that have the STRUCT
data type.
default java.lang.String getUnit()
static CfnAssetModel.AssetModelPropertyProperty.Builder builder()