public static final class CfnAssetModel.AssetModelPropertyProperty.Builder
extends java.lang.Object
CfnAssetModel.AssetModelPropertyProperty
Constructor and Description |
---|
Builder() |
public CfnAssetModel.AssetModelPropertyProperty.Builder dataType(java.lang.String dataType)
CfnAssetModel.AssetModelPropertyProperty.getDataType()
dataType
- The data type of the asset model property. This parameter is required.
The value can be STRING
, INTEGER
, DOUBLE
, BOOLEAN
, or STRUCT
.this
public CfnAssetModel.AssetModelPropertyProperty.Builder logicalId(java.lang.String logicalId)
CfnAssetModel.AssetModelPropertyProperty.getLogicalId()
logicalId
- The `LogicalID` of the asset model property. This parameter is required.
The maximum length is 256 characters, with the pattern [^\\ u0000-\\ u001F\\ u007F]+
.this
public CfnAssetModel.AssetModelPropertyProperty.Builder name(java.lang.String name)
CfnAssetModel.AssetModelPropertyProperty.getName()
name
- The name of the asset model property. This parameter is required.
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+
.this
public CfnAssetModel.AssetModelPropertyProperty.Builder type(IResolvable type)
CfnAssetModel.AssetModelPropertyProperty.getType()
type
- Contains a property type, which can be one of `Attribute` , `Measurement` , `Metric` , or `Transform` . This parameter is required.this
public CfnAssetModel.AssetModelPropertyProperty.Builder type(CfnAssetModel.PropertyTypeProperty type)
CfnAssetModel.AssetModelPropertyProperty.getType()
type
- Contains a property type, which can be one of `Attribute` , `Measurement` , `Metric` , or `Transform` . This parameter is required.this
public CfnAssetModel.AssetModelPropertyProperty.Builder dataTypeSpec(java.lang.String dataTypeSpec)
CfnAssetModel.AssetModelPropertyProperty.getDataTypeSpec()
dataTypeSpec
- The data type of the structure for this property.
This parameter exists on properties that have the STRUCT
data type.this
public CfnAssetModel.AssetModelPropertyProperty.Builder unit(java.lang.String unit)
CfnAssetModel.AssetModelPropertyProperty.getUnit()
unit
- The unit of the asset model property, such as `Newtons` or `RPM` .this
public CfnAssetModel.AssetModelPropertyProperty build()
CfnAssetModel.AssetModelPropertyProperty
java.lang.NullPointerException
- if any required attribute was not provided