Class CfnMetricStream.MetricStreamFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnMetricStream.MetricStreamFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetricStream.MetricStreamFilterProperty>
- Enclosing interface:
CfnMetricStream.MetricStreamFilterProperty
@Stability(Stable)
public static final class CfnMetricStream.MetricStreamFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetricStream.MetricStreamFilterProperty>
A builder for
CfnMetricStream.MetricStreamFilterProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metricNames
(List<String> metricNames) Sets the value ofCfnMetricStream.MetricStreamFilterProperty.getMetricNames()
Sets the value ofCfnMetricStream.MetricStreamFilterProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
namespace
@Stability(Stable) public CfnMetricStream.MetricStreamFilterProperty.Builder namespace(String namespace) Sets the value ofCfnMetricStream.MetricStreamFilterProperty.getNamespace()
- Parameters:
namespace
- The name of the metric namespace in the filter. This parameter is required. The namespace can contain only ASCII printable characters (ASCII range 32 through 126). It must contain at least one non-whitespace character.- Returns:
this
-
metricNames
@Stability(Stable) public CfnMetricStream.MetricStreamFilterProperty.Builder metricNames(List<String> metricNames) Sets the value ofCfnMetricStream.MetricStreamFilterProperty.getMetricNames()
- Parameters:
metricNames
- The names of the metrics to either include or exclude from the metric stream. If you omit this parameter, all metrics in the namespace are included or excluded, depending on whether this filter is specified as an exclude filter or an include filter.Each metric name can contain only ASCII printable characters (ASCII range 32 through 126). Each metric name must contain at least one non-whitespace character.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMetricStream.MetricStreamFilterProperty>
- Returns:
- a new instance of
CfnMetricStream.MetricStreamFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-