Class CfnUsagePlan.ThrottleSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnUsagePlan.ThrottleSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUsagePlan.ThrottleSettingsProperty>
- Enclosing interface:
CfnUsagePlan.ThrottleSettingsProperty
@Stability(Stable)
public static final class CfnUsagePlan.ThrottleSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUsagePlan.ThrottleSettingsProperty>
A builder for
CfnUsagePlan.ThrottleSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.burstLimit
(Number burstLimit) Sets the value ofCfnUsagePlan.ThrottleSettingsProperty.getBurstLimit()
Sets the value ofCfnUsagePlan.ThrottleSettingsProperty.getRateLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
burstLimit
@Stability(Stable) public CfnUsagePlan.ThrottleSettingsProperty.Builder burstLimit(Number burstLimit) Sets the value ofCfnUsagePlan.ThrottleSettingsProperty.getBurstLimit()
- Parameters:
burstLimit
- The API target request burst rate limit. This allows more requests through for a period of time than the target rate limit.- Returns:
this
-
rateLimit
Sets the value ofCfnUsagePlan.ThrottleSettingsProperty.getRateLimit()
- Parameters:
rateLimit
- The API target request rate limit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUsagePlan.ThrottleSettingsProperty>
- Returns:
- a new instance of
CfnUsagePlan.ThrottleSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-