public static final class CfnAssetModel.PropertyTypeProperty.Builder
extends java.lang.Object
CfnAssetModel.PropertyTypeProperty
Constructor and Description |
---|
Builder() |
public CfnAssetModel.PropertyTypeProperty.Builder typeName(java.lang.String typeName)
CfnAssetModel.PropertyTypeProperty.getTypeName()
typeName
- The type of property type, which can be one of `Attribute` , `Measurement` , `Metric` , or `Transform` . This parameter is required.this
public CfnAssetModel.PropertyTypeProperty.Builder attribute(IResolvable attribute)
CfnAssetModel.PropertyTypeProperty.getAttribute()
attribute
- Specifies an asset attribute property.
An attribute generally contains static information, such as the serial number of an industrial IoT wind turbine.
This is required if the TypeName
is Attribute
and has a DefaultValue
.
this
public CfnAssetModel.PropertyTypeProperty.Builder attribute(CfnAssetModel.AttributeProperty attribute)
CfnAssetModel.PropertyTypeProperty.getAttribute()
attribute
- Specifies an asset attribute property.
An attribute generally contains static information, such as the serial number of an industrial IoT wind turbine.
This is required if the TypeName
is Attribute
and has a DefaultValue
.
this
public CfnAssetModel.PropertyTypeProperty.Builder metric(IResolvable metric)
CfnAssetModel.PropertyTypeProperty.getMetric()
metric
- Specifies an asset metric property.
A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
This is required if the TypeName
is Metric
.
this
public CfnAssetModel.PropertyTypeProperty.Builder metric(CfnAssetModel.MetricProperty metric)
CfnAssetModel.PropertyTypeProperty.getMetric()
metric
- Specifies an asset metric property.
A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
This is required if the TypeName
is Metric
.
this
public CfnAssetModel.PropertyTypeProperty.Builder transform(IResolvable transform)
CfnAssetModel.PropertyTypeProperty.getTransform()
transform
- Specifies an asset transform property.
A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
This is required if the TypeName
is Transform
.
this
public CfnAssetModel.PropertyTypeProperty.Builder transform(CfnAssetModel.TransformProperty transform)
CfnAssetModel.PropertyTypeProperty.getTransform()
transform
- Specifies an asset transform property.
A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
This is required if the TypeName
is Transform
.
this
public CfnAssetModel.PropertyTypeProperty build()
CfnAssetModel.PropertyTypeProperty
java.lang.NullPointerException
- if any required attribute was not provided