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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnComponentType.DataTypeProperty
static final class
An implementation forCfnComponentType.DataTypeProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
The allowed values for this data type.default Object
The nested type in the data type.default Object
A relationship that associates a component with another component.getType()
The underlying type of the data type.default String
The unit of measure used in this data type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The underlying type of the data type.Valid Values:
RELATIONSHIP | STRING | LONG | BOOLEAN | INTEGER | DOUBLE | LIST | MAP
-
getAllowedValues
The allowed values for this data type. -
getNestedType
The nested type in the data type. -
getRelationship
A relationship that associates a component with another component. -
getUnitOfMeasure
The unit of measure used in this data type. -
builder
-