Class ProvisionedPollerConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.eventsources.ProvisionedPollerConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProvisionedPollerConfig>
- Enclosing interface:
ProvisionedPollerConfig
@Stability(Stable)
public static final class ProvisionedPollerConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ProvisionedPollerConfig>
A builder for
ProvisionedPollerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumPollers
(Number maximumPollers) Sets the value ofProvisionedPollerConfig.getMaximumPollers()
minimumPollers
(Number minimumPollers) Sets the value ofProvisionedPollerConfig.getMinimumPollers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumPollers
Sets the value ofProvisionedPollerConfig.getMaximumPollers()
- Parameters:
maximumPollers
- The maximum number of pollers that can be provisioned. This parameter is required.- Returns:
this
-
minimumPollers
Sets the value ofProvisionedPollerConfig.getMinimumPollers()
- Parameters:
minimumPollers
- The minimum number of pollers that should be provisioned. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ProvisionedPollerConfig>
- Returns:
- a new instance of
ProvisionedPollerConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-