Class CfnComponentType.DataTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iottwinmaker.CfnComponentType.DataTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentType.DataTypeProperty>
- Enclosing interface:
CfnComponentType.DataTypeProperty
@Stability(Stable)
public static final class CfnComponentType.DataTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentType.DataTypeProperty>
A builder for
CfnComponentType.DataTypeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowedValues
(List<? extends Object> allowedValues) Sets the value ofCfnComponentType.DataTypeProperty.getAllowedValues()
allowedValues
(IResolvable allowedValues) Sets the value ofCfnComponentType.DataTypeProperty.getAllowedValues()
build()
Builds the configured instance.nestedType
(IResolvable nestedType) Sets the value ofCfnComponentType.DataTypeProperty.getNestedType()
nestedType
(CfnComponentType.DataTypeProperty nestedType) Sets the value ofCfnComponentType.DataTypeProperty.getNestedType()
relationship
(IResolvable relationship) Sets the value ofCfnComponentType.DataTypeProperty.getRelationship()
relationship
(CfnComponentType.RelationshipProperty relationship) Sets the value ofCfnComponentType.DataTypeProperty.getRelationship()
Sets the value ofCfnComponentType.DataTypeProperty.getType()
unitOfMeasure
(String unitOfMeasure) Sets the value ofCfnComponentType.DataTypeProperty.getUnitOfMeasure()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnComponentType.DataTypeProperty.getType()
- Parameters:
type
- The underlying type of the data type. This parameter is required. Valid Values:RELATIONSHIP | STRING | LONG | BOOLEAN | INTEGER | DOUBLE | LIST | MAP
- Returns:
this
-
allowedValues
@Stability(Stable) public CfnComponentType.DataTypeProperty.Builder allowedValues(IResolvable allowedValues) Sets the value ofCfnComponentType.DataTypeProperty.getAllowedValues()
- Parameters:
allowedValues
- The allowed values for this data type.- Returns:
this
-
allowedValues
@Stability(Stable) public CfnComponentType.DataTypeProperty.Builder allowedValues(List<? extends Object> allowedValues) Sets the value ofCfnComponentType.DataTypeProperty.getAllowedValues()
- Parameters:
allowedValues
- The allowed values for this data type.- Returns:
this
-
nestedType
@Stability(Stable) public CfnComponentType.DataTypeProperty.Builder nestedType(IResolvable nestedType) Sets the value ofCfnComponentType.DataTypeProperty.getNestedType()
- Parameters:
nestedType
- The nested type in the data type.- Returns:
this
-
nestedType
@Stability(Stable) public CfnComponentType.DataTypeProperty.Builder nestedType(CfnComponentType.DataTypeProperty nestedType) Sets the value ofCfnComponentType.DataTypeProperty.getNestedType()
- Parameters:
nestedType
- The nested type in the data type.- Returns:
this
-
relationship
@Stability(Stable) public CfnComponentType.DataTypeProperty.Builder relationship(IResolvable relationship) Sets the value ofCfnComponentType.DataTypeProperty.getRelationship()
- Parameters:
relationship
- A relationship that associates a component with another component.- Returns:
this
-
relationship
@Stability(Stable) public CfnComponentType.DataTypeProperty.Builder relationship(CfnComponentType.RelationshipProperty relationship) Sets the value ofCfnComponentType.DataTypeProperty.getRelationship()
- Parameters:
relationship
- A relationship that associates a component with another component.- Returns:
this
-
unitOfMeasure
@Stability(Stable) public CfnComponentType.DataTypeProperty.Builder unitOfMeasure(String unitOfMeasure) Sets the value ofCfnComponentType.DataTypeProperty.getUnitOfMeasure()
- Parameters:
unitOfMeasure
- The unit of measure used in this data type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponentType.DataTypeProperty>
- Returns:
- a new instance of
CfnComponentType.DataTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-