Interface CfnAssetModel.PropertyTypeProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAssetModel.PropertyTypeProperty.Jsii$Proxy
Enclosing class:
CfnAssetModel

@Stability(Stable) public static interface CfnAssetModel.PropertyTypeProperty extends software.amazon.jsii.JsiiSerializable
Contains a property type, which can be one of Attribute , Measurement , Metric , or Transform .

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.*;
 PropertyTypeProperty propertyTypeProperty = 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();
 
  • Method Details

    • getTypeName

      @Stability(Stable) @NotNull String getTypeName()
      The type of property type, which can be one of Attribute , Measurement , Metric , or Transform .
    • getAttribute

      @Stability(Stable) @Nullable default Object getAttribute()
      Specifies an asset attribute property.

      An attribute generally contains static information, such as the serial number of an industrial IoT wind turbine.

      This is required if the TypeName is Attribute and has a DefaultValue .

    • getMetric

      @Stability(Stable) @Nullable default Object getMetric()
      Specifies an asset metric property.

      A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.

      This is required if the TypeName is Metric .

    • getTransform

      @Stability(Stable) @Nullable default Object getTransform()
      Specifies an asset transform property.

      A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.

      This is required if the TypeName is Transform .

    • builder

      @Stability(Stable) static CfnAssetModel.PropertyTypeProperty.Builder builder()
      Returns:
      a CfnAssetModel.PropertyTypeProperty.Builder of CfnAssetModel.PropertyTypeProperty