Class CfnEntity.DataTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iottwinmaker.CfnEntity.DataTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntity.DataTypeProperty>
- Enclosing interface:
CfnEntity.DataTypeProperty
@Stability(Stable)
public static final class CfnEntity.DataTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntity.DataTypeProperty>
A builder for
CfnEntity.DataTypeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedValues(List<? extends Object> allowedValues) Sets the value ofCfnEntity.DataTypeProperty.getAllowedValues()allowedValues(IResolvable allowedValues) Sets the value ofCfnEntity.DataTypeProperty.getAllowedValues()build()Builds the configured instance.nestedType(IResolvable nestedType) Sets the value ofCfnEntity.DataTypeProperty.getNestedType()nestedType(CfnEntity.DataTypeProperty nestedType) Sets the value ofCfnEntity.DataTypeProperty.getNestedType()relationship(IResolvable relationship) Sets the value ofCfnEntity.DataTypeProperty.getRelationship()relationship(CfnEntity.RelationshipProperty relationship) Sets the value ofCfnEntity.DataTypeProperty.getRelationship()Sets the value ofCfnEntity.DataTypeProperty.getType()unitOfMeasure(String unitOfMeasure) Sets the value ofCfnEntity.DataTypeProperty.getUnitOfMeasure()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedValues
@Stability(Stable) public CfnEntity.DataTypeProperty.Builder allowedValues(IResolvable allowedValues) Sets the value ofCfnEntity.DataTypeProperty.getAllowedValues()- Parameters:
allowedValues- The allowed values.- Returns:
this
-
allowedValues
@Stability(Stable) public CfnEntity.DataTypeProperty.Builder allowedValues(List<? extends Object> allowedValues) Sets the value ofCfnEntity.DataTypeProperty.getAllowedValues()- Parameters:
allowedValues- The allowed values.- Returns:
this
-
nestedType
Sets the value ofCfnEntity.DataTypeProperty.getNestedType()- Parameters:
nestedType- The nested type.- Returns:
this
-
nestedType
@Stability(Stable) public CfnEntity.DataTypeProperty.Builder nestedType(CfnEntity.DataTypeProperty nestedType) Sets the value ofCfnEntity.DataTypeProperty.getNestedType()- Parameters:
nestedType- The nested type.- Returns:
this
-
relationship
Sets the value ofCfnEntity.DataTypeProperty.getRelationship()- Parameters:
relationship- The relationship.- Returns:
this
-
relationship
@Stability(Stable) public CfnEntity.DataTypeProperty.Builder relationship(CfnEntity.RelationshipProperty relationship) Sets the value ofCfnEntity.DataTypeProperty.getRelationship()- Parameters:
relationship- The relationship.- Returns:
this
-
type
Sets the value ofCfnEntity.DataTypeProperty.getType()- Parameters:
type- The entity type.- Returns:
this
-
unitOfMeasure
Sets the value ofCfnEntity.DataTypeProperty.getUnitOfMeasure()- Parameters:
unitOfMeasure- The unit of measure.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEntity.DataTypeProperty>- Returns:
- a new instance of
CfnEntity.DataTypeProperty - Throws:
NullPointerException- if any required attribute was not provided
-