Class CfnUsagePlan.QuotaSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnUsagePlan.QuotaSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUsagePlan.QuotaSettingsProperty>
- Enclosing interface:
CfnUsagePlan.QuotaSettingsProperty
@Stability(Stable)
public static final class CfnUsagePlan.QuotaSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUsagePlan.QuotaSettingsProperty>
A builder for
CfnUsagePlan.QuotaSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUsagePlan.QuotaSettingsProperty.getLimit()
Sets the value ofCfnUsagePlan.QuotaSettingsProperty.getOffset()
Sets the value ofCfnUsagePlan.QuotaSettingsProperty.getPeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
limit
Sets the value ofCfnUsagePlan.QuotaSettingsProperty.getLimit()
- Parameters:
limit
- The target maximum number of requests that can be made in a given time period.- Returns:
this
-
offset
Sets the value ofCfnUsagePlan.QuotaSettingsProperty.getOffset()
- Parameters:
offset
- The number of requests subtracted from the given limit in the initial time period.- Returns:
this
-
period
Sets the value ofCfnUsagePlan.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnUsagePlan.QuotaSettingsProperty>
- Returns:
- a new instance of
CfnUsagePlan.QuotaSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-