Class CfnEventSourceMapping.ScalingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnEventSourceMapping.ScalingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMapping.ScalingConfigProperty>
- Enclosing interface:
CfnEventSourceMapping.ScalingConfigProperty
@Stability(Stable)
public static final class CfnEventSourceMapping.ScalingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMapping.ScalingConfigProperty>
A builder for
CfnEventSourceMapping.ScalingConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumConcurrency
(Number maximumConcurrency) Sets the value ofCfnEventSourceMapping.ScalingConfigProperty.getMaximumConcurrency()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumConcurrency
@Stability(Stable) public CfnEventSourceMapping.ScalingConfigProperty.Builder maximumConcurrency(Number maximumConcurrency) Sets the value ofCfnEventSourceMapping.ScalingConfigProperty.getMaximumConcurrency()
- Parameters:
maximumConcurrency
- Limits the number of concurrent instances that the Amazon SQS event source can invoke.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventSourceMapping.ScalingConfigProperty>
- Returns:
- a new instance of
CfnEventSourceMapping.ScalingConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-