Class CfnEventSourceMappingPropsMixin.MetricsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnEventSourceMappingPropsMixin.MetricsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.MetricsConfigProperty>
- Enclosing interface:
CfnEventSourceMappingPropsMixin.MetricsConfigProperty
@Stability(Stable)
public static final class CfnEventSourceMappingPropsMixin.MetricsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.MetricsConfigProperty>
A builder for
CfnEventSourceMappingPropsMixin.MetricsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventSourceMappingPropsMixin.MetricsConfigProperty.getMetrics()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metrics
@Stability(Stable) public CfnEventSourceMappingPropsMixin.MetricsConfigProperty.Builder metrics(List<String> metrics) Sets the value ofCfnEventSourceMappingPropsMixin.MetricsConfigProperty.getMetrics()- Parameters:
metrics- The metrics you want your event source mapping to produce. IncludeEventCountto receive event source mapping metrics related to the number of events processed by your event source mapping. For more information about these metrics, see Event source mapping metrics .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.MetricsConfigProperty>- Returns:
- a new instance of
CfnEventSourceMappingPropsMixin.MetricsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-