Interface CfnComponentType.DataTypeProperty

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

@Stability(Stable) public static interface CfnComponentType.DataTypeProperty extends software.amazon.jsii.JsiiSerializable
An object that specifies the data type of a 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.iottwinmaker.*;
 DataTypeProperty dataTypeProperty_;
 DataValueProperty dataValueProperty_;
 Object relationshipValue;
 DataTypeProperty dataTypeProperty = DataTypeProperty.builder()
         .type("type")
         // the properties below are optional
         .allowedValues(List.of(DataValueProperty.builder()
                 .booleanValue(false)
                 .doubleValue(123)
                 .expression("expression")
                 .integerValue(123)
                 .listValue(List.of(dataValueProperty_))
                 .longValue(123)
                 .mapValue(Map.of(
                         "mapValueKey", dataValueProperty_))
                 .relationshipValue(relationshipValue)
                 .stringValue("stringValue")
                 .build()))
         .nestedType(DataTypeProperty.builder()
                 .type("type")
                 // the properties below are optional
                 .allowedValues(List.of(DataValueProperty.builder()
                         .booleanValue(false)
                         .doubleValue(123)
                         .expression("expression")
                         .integerValue(123)
                         .listValue(List.of(dataValueProperty_))
                         .longValue(123)
                         .mapValue(Map.of(
                                 "mapValueKey", dataValueProperty_))
                         .relationshipValue(relationshipValue)
                         .stringValue("stringValue")
                         .build()))
                 .nestedType(dataTypeProperty_)
                 .relationship(RelationshipProperty.builder()
                         .relationshipType("relationshipType")
                         .targetComponentTypeId("targetComponentTypeId")
                         .build())
                 .unitOfMeasure("unitOfMeasure")
                 .build())
         .relationship(RelationshipProperty.builder()
                 .relationshipType("relationshipType")
                 .targetComponentTypeId("targetComponentTypeId")
                 .build())
         .unitOfMeasure("unitOfMeasure")
         .build();
 
  • Method Details

    • getType

      @Stability(Stable) @NotNull String getType()
      The underlying type of the data type.

      Valid Values: RELATIONSHIP | STRING | LONG | BOOLEAN | INTEGER | DOUBLE | LIST | MAP

    • getAllowedValues

      @Stability(Stable) @Nullable default Object getAllowedValues()
      The allowed values for this data type.
    • getNestedType

      @Stability(Stable) @Nullable default Object getNestedType()
      The nested type in the data type.
    • getRelationship

      @Stability(Stable) @Nullable default Object getRelationship()
      A relationship that associates a component with another component.
    • getUnitOfMeasure

      @Stability(Stable) @Nullable default String getUnitOfMeasure()
      The unit of measure used in this data type.
    • builder

      @Stability(Stable) static CfnComponentType.DataTypeProperty.Builder builder()
      Returns:
      a CfnComponentType.DataTypeProperty.Builder of CfnComponentType.DataTypeProperty