Class CfnAssetModel.PropertyTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAssetModel.PropertyTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModel.PropertyTypeProperty>
- Enclosing interface:
CfnAssetModel.PropertyTypeProperty
@Stability(Stable)
public static final class CfnAssetModel.PropertyTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetModel.PropertyTypeProperty>
A builder for
CfnAssetModel.PropertyTypeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattribute(IResolvable attribute) Sets the value ofCfnAssetModel.PropertyTypeProperty.getAttribute()attribute(CfnAssetModel.AttributeProperty attribute) Sets the value ofCfnAssetModel.PropertyTypeProperty.getAttribute()build()Builds the configured instance.metric(IResolvable metric) Sets the value ofCfnAssetModel.PropertyTypeProperty.getMetric()metric(CfnAssetModel.MetricProperty metric) Sets the value ofCfnAssetModel.PropertyTypeProperty.getMetric()transform(IResolvable transform) Sets the value ofCfnAssetModel.PropertyTypeProperty.getTransform()transform(CfnAssetModel.TransformProperty transform) Sets the value ofCfnAssetModel.PropertyTypeProperty.getTransform()Sets the value ofCfnAssetModel.PropertyTypeProperty.getTypeName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
typeName
Sets the value ofCfnAssetModel.PropertyTypeProperty.getTypeName()- Parameters:
typeName- The type of property type, which can be one ofAttribute,Measurement,Metric, orTransform. This parameter is required.- Returns:
this
-
attribute
@Stability(Stable) public CfnAssetModel.PropertyTypeProperty.Builder attribute(IResolvable attribute) Sets the value ofCfnAssetModel.PropertyTypeProperty.getAttribute()- Parameters:
attribute- Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.- Returns:
this
-
attribute
@Stability(Stable) public CfnAssetModel.PropertyTypeProperty.Builder attribute(CfnAssetModel.AttributeProperty attribute) Sets the value ofCfnAssetModel.PropertyTypeProperty.getAttribute()- Parameters:
attribute- Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an IIoT wind turbine.- Returns:
this
-
metric
Sets the value ofCfnAssetModel.PropertyTypeProperty.getMetric()- Parameters:
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.- Returns:
this
-
metric
@Stability(Stable) public CfnAssetModel.PropertyTypeProperty.Builder metric(CfnAssetModel.MetricProperty metric) Sets the value ofCfnAssetModel.PropertyTypeProperty.getMetric()- Parameters:
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.- Returns:
this
-
transform
@Stability(Stable) public CfnAssetModel.PropertyTypeProperty.Builder transform(IResolvable transform) Sets the value ofCfnAssetModel.PropertyTypeProperty.getTransform()- Parameters:
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.- Returns:
this
-
transform
@Stability(Stable) public CfnAssetModel.PropertyTypeProperty.Builder transform(CfnAssetModel.TransformProperty transform) Sets the value ofCfnAssetModel.PropertyTypeProperty.getTransform()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssetModel.PropertyTypeProperty>- Returns:
- a new instance of
CfnAssetModel.PropertyTypeProperty - Throws:
NullPointerException- if any required attribute was not provided
-