Class CfnUsagePlanPropsMixin.ThrottleSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.apigateway.mixins.CfnUsagePlanPropsMixin.ThrottleSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUsagePlanPropsMixin.ThrottleSettingsProperty>
- Enclosing interface:
CfnUsagePlanPropsMixin.ThrottleSettingsProperty
@Stability(Stable)
public static final class CfnUsagePlanPropsMixin.ThrottleSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUsagePlanPropsMixin.ThrottleSettingsProperty>
A builder for
CfnUsagePlanPropsMixin.ThrottleSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.burstLimit(Number burstLimit) Sets the value ofCfnUsagePlanPropsMixin.ThrottleSettingsProperty.getBurstLimit()Sets the value ofCfnUsagePlanPropsMixin.ThrottleSettingsProperty.getRateLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
burstLimit
@Stability(Stable) public CfnUsagePlanPropsMixin.ThrottleSettingsProperty.Builder burstLimit(Number burstLimit) Sets the value ofCfnUsagePlanPropsMixin.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
@Stability(Stable) public CfnUsagePlanPropsMixin.ThrottleSettingsProperty.Builder rateLimit(Number rateLimit) Sets the value ofCfnUsagePlanPropsMixin.ThrottleSettingsProperty.getRateLimit()- Parameters:
rateLimit- The API target request rate limit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUsagePlanPropsMixin.ThrottleSettingsProperty>- Returns:
- a new instance of
CfnUsagePlanPropsMixin.ThrottleSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-