Class CfnAssetModel.AssetModelPropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAssetModel.AssetModelPropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModel.AssetModelPropertyProperty>
- Enclosing interface:
CfnAssetModel.AssetModelPropertyProperty
@Stability(Stable)
public static final class CfnAssetModel.AssetModelPropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetModel.AssetModelPropertyProperty>
A builder for
CfnAssetModel.AssetModelPropertyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getDataType()
dataTypeSpec
(String dataTypeSpec) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getDataTypeSpec()
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getLogicalId()
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getName()
type
(IResolvable type) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getType()
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getType()
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataType
@Stability(Stable) public CfnAssetModel.AssetModelPropertyProperty.Builder dataType(String dataType) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getDataType()
- Parameters:
dataType
- The data type of the asset model property. This parameter is required. The value can beSTRING
,INTEGER
,DOUBLE
,BOOLEAN
, orSTRUCT
.- Returns:
this
-
logicalId
@Stability(Stable) public CfnAssetModel.AssetModelPropertyProperty.Builder logicalId(String logicalId) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getLogicalId()
- Parameters:
logicalId
- TheLogicalID
of the asset model property. This parameter is required. The maximum length is 256 characters, with the pattern[^\\ u0000-\\ u001F\\ u007F]+
.- Returns:
this
-
name
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getName()
- Parameters:
name
- The name of the asset model property. This parameter is required. The maximum length is 256 characters with the pattern[^\ u0000-\ u001F\ u007F]+
.- Returns:
this
-
type
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getType()
- Parameters:
type
- Contains a property type, which can be one ofAttribute
,Measurement
,Metric
, orTransform
. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public CfnAssetModel.AssetModelPropertyProperty.Builder type(CfnAssetModel.PropertyTypeProperty type) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getType()
- Parameters:
type
- Contains a property type, which can be one ofAttribute
,Measurement
,Metric
, orTransform
. This parameter is required.- Returns:
this
-
dataTypeSpec
@Stability(Stable) public CfnAssetModel.AssetModelPropertyProperty.Builder dataTypeSpec(String dataTypeSpec) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getDataTypeSpec()
- Parameters:
dataTypeSpec
- The data type of the structure for this property. This parameter exists on properties that have theSTRUCT
data type.- Returns:
this
-
unit
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getUnit()
- Parameters:
unit
- The unit of the asset model property, such asNewtons
orRPM
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssetModel.AssetModelPropertyProperty>
- Returns:
- a new instance of
CfnAssetModel.AssetModelPropertyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-