Class CfnUsagePlanPropsMixin.QuotaSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.apigateway.mixins.CfnUsagePlanPropsMixin.QuotaSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUsagePlanPropsMixin.QuotaSettingsProperty>
- Enclosing interface:
CfnUsagePlanPropsMixin.QuotaSettingsProperty
@Stability(Stable)
public static final class CfnUsagePlanPropsMixin.QuotaSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUsagePlanPropsMixin.QuotaSettingsProperty>
A builder for
CfnUsagePlanPropsMixin.QuotaSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnUsagePlanPropsMixin.QuotaSettingsProperty.getLimit()Sets the value ofCfnUsagePlanPropsMixin.QuotaSettingsProperty.getOffset()Sets the value ofCfnUsagePlanPropsMixin.QuotaSettingsProperty.getPeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
limit
Sets the value ofCfnUsagePlanPropsMixin.QuotaSettingsProperty.getLimit()- Parameters:
limit- The target maximum number of requests that can be made in a given time period.- Returns:
this
-
offset
@Stability(Stable) public CfnUsagePlanPropsMixin.QuotaSettingsProperty.Builder offset(Number offset) Sets the value ofCfnUsagePlanPropsMixin.QuotaSettingsProperty.getOffset()- Parameters:
offset- The number of requests subtracted from the given limit in the initial time period.- Returns:
this
-
period
@Stability(Stable) public CfnUsagePlanPropsMixin.QuotaSettingsProperty.Builder period(String period) Sets the value ofCfnUsagePlanPropsMixin.QuotaSettingsProperty.getPeriod()- Parameters:
period- The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUsagePlanPropsMixin.QuotaSettingsProperty>- Returns:
- a new instance of
CfnUsagePlanPropsMixin.QuotaSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-