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") .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() .hierarchyExternalId("hierarchyExternalId") .hierarchyId("hierarchyId") .hierarchyLogicalId("hierarchyLogicalId") .propertyExternalId("propertyExternalId") .propertyId("propertyId") .propertyLogicalId("propertyLogicalId") .propertyPath(List.of(PropertyPathDefinitionProperty.builder() .name("name") .build())) .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() .hierarchyExternalId("hierarchyExternalId") .hierarchyId("hierarchyId") .hierarchyLogicalId("hierarchyLogicalId") .propertyExternalId("propertyExternalId") .propertyId("propertyId") .propertyLogicalId("propertyLogicalId") .propertyPath(List.of(PropertyPathDefinitionProperty.builder() .name("name") .build())) .build()) .build())) .build()) .build()) // the properties below are optional .dataTypeSpec("dataTypeSpec") .externalId("externalId") .id("id") .logicalId("logicalId") .unit("unit") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAssetModel.AssetModelPropertyProperty
static final class
An implementation forCfnAssetModel.AssetModelPropertyProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The data type of the asset model property.default String
The data type of the structure for this property.default String
The external ID of the asset property.default String
getId()
The ID of the property.default String
TheLogicalID
of 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 String
getUnit()
The unit of the asset model property, such asNewtons
orRPM
.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDataType
The data type of the asset model property.If you specify
STRUCT
, you must also specifydataTypeSpec
to identify the type of the structure for this property.- See Also:
-
getName
The name of the asset model property.- 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
STRUCT
data type.- See Also:
-
getExternalId
The external ID of the asset property.For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
One of
ExternalId
orLogicalId
must be specified.- See Also:
-
getId
The ID of the property.This is a return value and can't be set.
- See Also:
-
getLogicalId
TheLogicalID
of the asset model property.One of
ExternalId
orLogicalId
must be specified.- See Also:
-
getUnit
The unit of the asset model property, such asNewtons
orRPM
.- See Also:
-
builder
-