Class CfnAssetModelPropsMixin.MetricProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iotsitewise.CfnAssetModelPropsMixin.MetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetModelPropsMixin.MetricProperty>
- Enclosing interface:
CfnAssetModelPropsMixin.MetricProperty
@Stability(Stable)
public static final class CfnAssetModelPropsMixin.MetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetModelPropsMixin.MetricProperty>
A builder for
CfnAssetModelPropsMixin.MetricProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getExpression()Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getVariables()variables(IResolvable variables) Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getVariables()Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getWindow()window(IResolvable window) Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getWindow()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
@Stability(Stable) public CfnAssetModelPropsMixin.MetricProperty.Builder expression(String expression) Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getExpression()- Parameters:
expression- The mathematical expression that defines the metric aggregation function. 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
@Stability(Stable) public CfnAssetModelPropsMixin.MetricProperty.Builder variables(IResolvable variables) Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getVariables()- Parameters:
variables- The list of variables used in the expression.- Returns:
this
-
variables
@Stability(Stable) public CfnAssetModelPropsMixin.MetricProperty.Builder variables(List<? extends Object> variables) Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getVariables()- Parameters:
variables- The list of variables used in the expression.- Returns:
this
-
window
Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getWindow()- Parameters:
window- The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression. AWS IoT SiteWise computes one data point perwindow.- Returns:
this
-
window
@Stability(Stable) public CfnAssetModelPropsMixin.MetricProperty.Builder window(CfnAssetModelPropsMixin.MetricWindowProperty window) Sets the value ofCfnAssetModelPropsMixin.MetricProperty.getWindow()- Parameters:
window- The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression. AWS IoT SiteWise computes one data point perwindow.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssetModelPropsMixin.MetricProperty>- Returns:
- a new instance of
CfnAssetModelPropsMixin.MetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-