Class CfnAssetModel.MetricProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAssetModel.MetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModel.MetricProperty>
- Enclosing interface:
CfnAssetModel.MetricProperty
@Stability(Stable)
public static final class CfnAssetModel.MetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetModel.MetricProperty>
A builder for
CfnAssetModel.MetricProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.expression
(String expression) Sets the value ofCfnAssetModel.MetricProperty.getExpression()
Sets the value ofCfnAssetModel.MetricProperty.getVariables()
variables
(IResolvable variables) Sets the value ofCfnAssetModel.MetricProperty.getVariables()
window
(IResolvable window) Sets the value ofCfnAssetModel.MetricProperty.getWindow()
Sets the value ofCfnAssetModel.MetricProperty.getWindow()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
Sets the value ofCfnAssetModel.MetricProperty.getExpression()
- Parameters:
expression
- The mathematical expression that defines the metric aggregation function. This parameter is required. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.For more information, see Quotas in the AWS IoT SiteWise User Guide .
- Returns:
this
-
variables
Sets the value ofCfnAssetModel.MetricProperty.getVariables()
- Parameters:
variables
- The list of variables used in the expression. This parameter is required.- Returns:
this
-
variables
@Stability(Stable) public CfnAssetModel.MetricProperty.Builder variables(List<? extends Object> variables) Sets the value ofCfnAssetModel.MetricProperty.getVariables()
- Parameters:
variables
- The list of variables used in the expression. This parameter is required.- Returns:
this
-
window
Sets the value ofCfnAssetModel.MetricProperty.getWindow()
- Parameters:
window
- The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression. This parameter is required. AWS IoT SiteWise computes one data point perwindow
.- Returns:
this
-
window
@Stability(Stable) public CfnAssetModel.MetricProperty.Builder window(CfnAssetModel.MetricWindowProperty window) Sets the value ofCfnAssetModel.MetricProperty.getWindow()
- Parameters:
window
- The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression. This parameter is required. AWS IoT SiteWise computes one data point perwindow
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssetModel.MetricProperty>
- Returns:
- a new instance of
CfnAssetModel.MetricProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-