Class UsagePlanProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.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
-
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()
Sets the value ofUsagePlanProps.getName()
quota
(QuotaSettings quota) Sets the value ofUsagePlanProps.getQuota()
throttle
(ThrottleSettings throttle) Sets the value ofUsagePlanProps.getThrottle()
-
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
-
name
Sets the value ofUsagePlanProps.getName()
- Parameters:
name
- Name for this usage plan.- 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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UsagePlanProps>
- Returns:
- a new instance of
UsagePlanProps
- Throws:
NullPointerException
- if any required attribute was not provided
-