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_)
.relationship(RelationshipProperty.builder()
.relationshipType("relationshipType")
.targetComponentTypeId("targetComponentTypeId")
.build())
.unitOfMeasure("unitOfMeasure")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnComponentType.DataTypePropertystatic final classAn implementation forCfnComponentType.DataTypeProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe allowed values for this data type.default ObjectThe nested type in the data type.default ObjectA relationship that associates a component with another component.getType()The underlying type of the data type.default StringThe 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- See Also:
-
getAllowedValues
The allowed values for this data type.- See Also:
-
getNestedType
The nested type in the data type.- See Also:
-
getRelationship
A relationship that associates a component with another component.- See Also:
-
getUnitOfMeasure
The unit of measure used in this data type.- See Also:
-
builder
-