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
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.default StringThe external ID of the asset property.default StringgetId()The ID of the property.default StringTheLogicalIDof 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.If you specify
STRUCT, you must also specifydataTypeSpecto 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.Returns union: either
IResolvableorCfnAssetModel.PropertyTypeProperty- See Also:
-
getDataTypeSpec
The data type of the structure for this property.This parameter exists on properties that have the
STRUCTdata 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
ExternalIdorLogicalIdmust be specified.- See Also:
-
getId
The ID of the property.This is a return value and can't be set.
- See Also:
-
getLogicalId
TheLogicalIDof the asset model property.One of
ExternalIdorLogicalIdmust be specified.- See Also:
-
getUnit
The unit of the asset model property, such asNewtonsorRPM.- See Also:
-
builder
-