Class CfnMetricStream.MetricStreamStatisticsMetricProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnMetricStream.MetricStreamStatisticsMetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetricStream.MetricStreamStatisticsMetricProperty>
- Enclosing interface:
CfnMetricStream.MetricStreamStatisticsMetricProperty
@Stability(Stable)
public static final class CfnMetricStream.MetricStreamStatisticsMetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetricStream.MetricStreamStatisticsMetricProperty>
A builder for
CfnMetricStream.MetricStreamStatisticsMetricProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metricName
(String metricName) Sets the value ofCfnMetricStream.MetricStreamStatisticsMetricProperty.getMetricName()
Sets the value ofCfnMetricStream.MetricStreamStatisticsMetricProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricName
@Stability(Stable) public CfnMetricStream.MetricStreamStatisticsMetricProperty.Builder metricName(String metricName) Sets the value ofCfnMetricStream.MetricStreamStatisticsMetricProperty.getMetricName()
- Parameters:
metricName
- The name of the metric. This parameter is required.- Returns:
this
-
namespace
@Stability(Stable) public CfnMetricStream.MetricStreamStatisticsMetricProperty.Builder namespace(String namespace) Sets the value ofCfnMetricStream.MetricStreamStatisticsMetricProperty.getNamespace()
- Parameters:
namespace
- The namespace of the metric. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMetricStream.MetricStreamStatisticsMetricProperty>
- Returns:
- a new instance of
CfnMetricStream.MetricStreamStatisticsMetricProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-