Class CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty>
- Enclosing interface:
CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty
@Stability(Stable)
public static final class CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) dimensions(IResolvable dimensions) metricName(String metricName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder accountId(String accountId) - Parameters:
accountId- If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here. If you omit this parameter, the current account is used.- Returns:
this
-
dimensions
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder dimensions(IResolvable dimensions) - Parameters:
dimensions- The metric dimensions to create the anomaly detection model for.- Returns:
this
-
dimensions
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder dimensions(List<? extends Object> dimensions) - Parameters:
dimensions- The metric dimensions to create the anomaly detection model for.- Returns:
this
-
metricName
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder metricName(String metricName) - Parameters:
metricName- The name of the metric to create the anomaly detection model for.- Returns:
this
-
namespace
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder namespace(String namespace) - Parameters:
namespace- The namespace of the metric to create the anomaly detection model for.- Returns:
this
-
stat
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty.Builder stat(String stat) - Parameters:
stat- The statistic to use for the metric and anomaly detection model.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty>- Returns:
- a new instance of
CfnAnomalyDetectorPropsMixin.SingleMetricAnomalyDetectorProperty - Throws:
NullPointerException- if any required attribute was not provided
-