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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getDataType()
dataTypeSpec
(String dataTypeSpec) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getDataTypeSpec()
externalId
(String externalId) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getExternalId()
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getId()
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. If you specifySTRUCT
, you must also specifydataTypeSpec
to identify the type of the structure for this property.- Returns:
this
-
name
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getName()
- Parameters:
name
- The name of the asset model property. This parameter is required.- 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
-
externalId
@Stability(Stable) public CfnAssetModel.AssetModelPropertyProperty.Builder externalId(String externalId) Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getExternalId()
- Parameters:
externalId
- The external ID of the asset property. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .One of
ExternalId
orLogicalId
must be specified.- Returns:
this
-
id
Sets the value ofCfnAssetModel.AssetModelPropertyProperty.getId()
- Parameters:
id
- The ID of the property.This is a return value and can't be set.
- 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.One of
ExternalId
orLogicalId
must be specified.- 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
-