Class CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty>
- Enclosing interface:
CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty
@Stability(Stable)
public static final class CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty>
A builder for
CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricNames(List<String> metricNames) Sets the value ofCfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.getMetricNames()Sets the value ofCfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
namespace
@Stability(Stable) public CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.Builder namespace(String namespace) Sets the value ofCfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.getNamespace()- Parameters:
namespace- The CloudWatch namespace this selector applies to. This parameter is required.- Returns:
this
-
metricNames
@Stability(Stable) public CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.Builder metricNames(List<String> metricNames) Sets the value ofCfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty.getMetricNames()- Parameters:
metricNames- Absent or empty means every metric in this namespace, in whichever direction this selector appears. Present means only these metric names.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty>- Returns:
- a new instance of
CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty - Throws:
NullPointerException- if any required attribute was not provided
-