Class CfnUsagePlan.ApiStageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnUsagePlan.ApiStageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUsagePlan.ApiStageProperty>
- Enclosing interface:
- CfnUsagePlan.ApiStageProperty
@Stability(Stable)
public static final class CfnUsagePlan.ApiStageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUsagePlan.ApiStageProperty>
A builder for
CfnUsagePlan.ApiStageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnUsagePlan.ApiStageProperty.getApiId()
build()
Builds the configured instance.Sets the value ofCfnUsagePlan.ApiStageProperty.getStage()
Sets the value ofCfnUsagePlan.ApiStageProperty.getThrottle()
throttle
(IResolvable throttle) Sets the value ofCfnUsagePlan.ApiStageProperty.getThrottle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnUsagePlan.ApiStageProperty.getApiId()
- Parameters:
apiId
- API Id of the associated API stage in a usage plan.- Returns:
this
-
stage
Sets the value ofCfnUsagePlan.ApiStageProperty.getStage()
- Parameters:
stage
- API stage name of the associated API stage in a usage plan.- Returns:
this
-
throttle
Sets the value ofCfnUsagePlan.ApiStageProperty.getThrottle()
- Parameters:
throttle
- Map containing method level throttling information for API stage in a usage plan.- Returns:
this
-
throttle
@Stability(Stable) public CfnUsagePlan.ApiStageProperty.Builder throttle(Map<String, ? extends Object> throttle) Sets the value ofCfnUsagePlan.ApiStageProperty.getThrottle()
- Parameters:
throttle
- Map containing method level throttling information for API stage in a usage plan.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUsagePlan.ApiStageProperty>
- Returns:
- a new instance of
CfnUsagePlan.ApiStageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-