Class CfnEventSourceMapping.MetricsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnEventSourceMapping.MetricsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMapping.MetricsConfigProperty>
- Enclosing interface:
CfnEventSourceMapping.MetricsConfigProperty
@Stability(Stable)
public static final class CfnEventSourceMapping.MetricsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMapping.MetricsConfigProperty>
A builder for
CfnEventSourceMapping.MetricsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventSourceMapping.MetricsConfigProperty.getMetrics()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metrics
@Stability(Stable) public CfnEventSourceMapping.MetricsConfigProperty.Builder metrics(List<String> metrics) Sets the value ofCfnEventSourceMapping.MetricsConfigProperty.getMetrics()- Parameters:
metrics- Metric groups to enable.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSourceMapping.MetricsConfigProperty>- Returns:
- a new instance of
CfnEventSourceMapping.MetricsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-