Class UsagePlanPerApiStage.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.UsagePlanPerApiStage.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UsagePlanPerApiStage>
- Enclosing interface:
UsagePlanPerApiStage
@Stability(Stable)
public static final class UsagePlanPerApiStage.Builder
extends Object
implements software.amazon.jsii.Builder<UsagePlanPerApiStage>
A builder for
UsagePlanPerApiStage-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofUsagePlanPerApiStage.getApi()build()Builds the configured instance.Sets the value ofUsagePlanPerApiStage.getStage()throttle(List<? extends ThrottlingPerMethod> throttle) Sets the value ofUsagePlanPerApiStage.getThrottle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
api
Sets the value ofUsagePlanPerApiStage.getApi()- Parameters:
api- the value to be set.- Returns:
this
-
stage
Sets the value ofUsagePlanPerApiStage.getStage()- Parameters:
stage- [disable-awslint:ref-via-interface].- Returns:
this
-
throttle
@Stability(Stable) public UsagePlanPerApiStage.Builder throttle(List<? extends ThrottlingPerMethod> throttle) Sets the value ofUsagePlanPerApiStage.getThrottle()- Parameters:
throttle- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UsagePlanPerApiStage>- Returns:
- a new instance of
UsagePlanPerApiStage - Throws:
NullPointerException- if any required attribute was not provided
-