Class UsagePlanProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.UsagePlanProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UsagePlanProps>
- Enclosing interface:
UsagePlanProps
@Stability(Stable)
public static final class UsagePlanProps.Builder
extends Object
implements software.amazon.jsii.Builder<UsagePlanProps>
A builder for
UsagePlanProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiStages(List<? extends UsagePlanPerApiStage> apiStages) Sets the value ofUsagePlanProps.getApiStages()build()Builds the configured instance.description(String description) Sets the value ofUsagePlanProps.getDescription()quota(QuotaSettings quota) Sets the value ofUsagePlanProps.getQuota()throttle(ThrottleSettings throttle) Sets the value ofUsagePlanProps.getThrottle()usagePlanName(String usagePlanName) Sets the value ofUsagePlanProps.getUsagePlanName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiStages
@Stability(Stable) public UsagePlanProps.Builder apiStages(List<? extends UsagePlanPerApiStage> apiStages) Sets the value ofUsagePlanProps.getApiStages()- Parameters:
apiStages- API Stages to be associated with the usage plan.- Returns:
this
-
description
Sets the value ofUsagePlanProps.getDescription()- Parameters:
description- Represents usage plan purpose.- Returns:
this
-
quota
Sets the value ofUsagePlanProps.getQuota()- Parameters:
quota- Number of requests clients can make in a given time period.- Returns:
this
-
throttle
Sets the value ofUsagePlanProps.getThrottle()- Parameters:
throttle- Overall throttle settings for the API.- Returns:
this
-
usagePlanName
Sets the value ofUsagePlanProps.getUsagePlanName()- Parameters:
usagePlanName- Name for this usage plan.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UsagePlanProps>- Returns:
- a new instance of
UsagePlanProps - Throws:
NullPointerException- if any required attribute was not provided
-