Class UsagePlan.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.UsagePlan.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UsagePlan>
- Enclosing class:
UsagePlan
@Stability(Stable)
public static final class UsagePlan.Builder
extends Object
implements software.amazon.jsii.Builder<UsagePlan>
A fluent builder for
UsagePlan
.-
Method Summary
Modifier and TypeMethodDescriptionapiStages
(List<? extends UsagePlanPerApiStage> apiStages) API Stages to be associated with the usage plan.build()
static UsagePlan.Builder
description
(String description) Represents usage plan purpose.quota
(QuotaSettings quota) Number of requests clients can make in a given time period.throttle
(ThrottleSettings throttle) Overall throttle settings for the API.usagePlanName
(String usagePlanName) Name for this usage plan.
-
Method Details
-
create
@Stability(Stable) public static UsagePlan.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
UsagePlan.Builder
.
-
apiStages
@Stability(Stable) public UsagePlan.Builder apiStages(List<? extends UsagePlanPerApiStage> apiStages) API Stages to be associated with the usage plan.Default: none
- Parameters:
apiStages
- API Stages to be associated with the usage plan. This parameter is required.- Returns:
this
-
description
Represents usage plan purpose.Default: none
- Parameters:
description
- Represents usage plan purpose. This parameter is required.- Returns:
this
-
quota
Number of requests clients can make in a given time period.Default: none
- Parameters:
quota
- Number of requests clients can make in a given time period. This parameter is required.- Returns:
this
-
throttle
Overall throttle settings for the API.Default: none
- Parameters:
throttle
- Overall throttle settings for the API. This parameter is required.- Returns:
this
-
usagePlanName
Name for this usage plan.Default: none
- Parameters:
usagePlanName
- Name for this usage plan. This parameter is required.- Returns:
this
-
build
-