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 SummaryConstructors
- 
Method SummaryModifier 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- 
Builderpublic 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
 
- 
descriptionSets the value ofUsagePlanProps.getDescription()- Parameters:
- description- Represents usage plan purpose.
- Returns:
- this
 
- 
nameSets the value ofUsagePlanProps.getName()- Parameters:
- name- Name for this usage plan.
- Returns:
- this
 
- 
quotaSets the value ofUsagePlanProps.getQuota()- Parameters:
- quota- Number of requests clients can make in a given time period.
- Returns:
- this
 
- 
throttleSets the value ofUsagePlanProps.getThrottle()- Parameters:
- throttle- Overall throttle settings for the API.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<UsagePlanProps>
- Returns:
- a new instance of UsagePlanProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-