Class ThrottleSettings.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.ThrottleSettings.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ThrottleSettings>
- Enclosing interface:
ThrottleSettings
@Stability(Experimental)
public static final class ThrottleSettings.Builder
extends Object
implements software.amazon.jsii.Builder<ThrottleSettings>
A builder for
ThrottleSettings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.burstLimit
(Number burstLimit) Sets the value ofThrottleSettings.getBurstLimit()
Sets the value ofThrottleSettings.getRateLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
burstLimit
Sets the value ofThrottleSettings.getBurstLimit()
- Parameters:
burstLimit
- The maximum API request rate limit over a time ranging from one to a few seconds.- Returns:
this
-
rateLimit
Sets the value ofThrottleSettings.getRateLimit()
- Parameters:
rateLimit
- The API request steady-state rate limit (average requests per second over an extended period of time).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ThrottleSettings>
- Returns:
- a new instance of
ThrottleSettings
- Throws:
NullPointerException
- if any required attribute was not provided
-