Class CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iotsitewise.CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModelPropsMixin.AssetModelPropertyProperty>
- Enclosing interface:
CfnAssetModelPropsMixin.AssetModelPropertyProperty
@Stability(Stable)
public static final class CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetModelPropsMixin.AssetModelPropertyProperty>
A builder for
CfnAssetModelPropsMixin.AssetModelPropertyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getDataType()dataTypeSpec(String dataTypeSpec) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getDataTypeSpec()externalId(String externalId) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getExternalId()Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getId()Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getLogicalId()Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getName()Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getType()type(IResolvable type) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getType()Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataType
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder dataType(String dataType) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getDataType()- Parameters:
dataType- The data type of the asset model property. If you specifySTRUCT, you must also specifydataTypeSpecto identify the type of the structure for this property.- Returns:
this
-
dataTypeSpec
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder dataTypeSpec(String dataTypeSpec) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getDataTypeSpec()- Parameters:
dataTypeSpec- The data type of the structure for this property. This parameter exists on properties that have theSTRUCTdata type.- Returns:
this
-
externalId
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder externalId(String externalId) Sets the value ofCfnAssetModelPropsMixin.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
ExternalIdorLogicalIdmust be specified.- Returns:
this
-
id
Sets the value ofCfnAssetModelPropsMixin.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 CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder logicalId(String logicalId) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getLogicalId()- Parameters:
logicalId- TheLogicalIDof the asset model property.One of
ExternalIdorLogicalIdmust be specified.- Returns:
this
-
name
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder name(String name) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getName()- Parameters:
name- The name of the asset model property.- Returns:
this
-
type
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder type(IResolvable type) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getType()- Parameters:
type- Contains a property type, which can be one ofattribute,measurement,metric, ortransform.- Returns:
this
-
type
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder type(CfnAssetModelPropsMixin.PropertyTypeProperty type) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getType()- Parameters:
type- Contains a property type, which can be one ofattribute,measurement,metric, ortransform.- Returns:
this
-
unit
@Stability(Stable) public CfnAssetModelPropsMixin.AssetModelPropertyProperty.Builder unit(String unit) Sets the value ofCfnAssetModelPropsMixin.AssetModelPropertyProperty.getUnit()- Parameters:
unit- The unit of the asset model property, such asNewtonsorRPM.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssetModelPropsMixin.AssetModelPropertyProperty>- Returns:
- a new instance of
CfnAssetModelPropsMixin.AssetModelPropertyProperty - Throws:
NullPointerException- if any required attribute was not provided
-