Class QuotaSettings.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.QuotaSettings.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<QuotaSettings>
- Enclosing interface:
- QuotaSettings
@Stability(Stable)
public static final class QuotaSettings.Builder
extends Object
implements software.amazon.jsii.Builder<QuotaSettings>
A builder for
QuotaSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofQuotaSettings.getLimit()
Sets the value ofQuotaSettings.getOffset()
Sets the value ofQuotaSettings.getPeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
limit
Sets the value ofQuotaSettings.getLimit()
- Parameters:
limit
- The maximum number of requests that users can make within the specified time period.- Returns:
this
-
offset
Sets the value ofQuotaSettings.getOffset()
- Parameters:
offset
- For the initial time period, the number of requests to subtract from the specified limit.- Returns:
this
-
period
Sets the value ofQuotaSettings.getPeriod()
- Parameters:
period
- The time period for which the maximum limit of requests applies.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<QuotaSettings>
- Returns:
- a new instance of
QuotaSettings
- Throws:
NullPointerException
- if any required attribute was not provided
-