Class CfnUsagePlanMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apigateway.CfnUsagePlanMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUsagePlanMixinProps>
- Enclosing interface:
CfnUsagePlanMixinProps
@Stability(Stable)
public static final class CfnUsagePlanMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUsagePlanMixinProps>
A builder for
CfnUsagePlanMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnUsagePlanMixinProps.getApiStages()apiStages(IResolvable apiStages) Sets the value ofCfnUsagePlanMixinProps.getApiStages()build()Builds the configured instance.description(String description) Sets the value ofCfnUsagePlanMixinProps.getDescription()Sets the value ofCfnUsagePlanMixinProps.getQuota()quota(IResolvable quota) Sets the value ofCfnUsagePlanMixinProps.getQuota()Sets the value ofCfnUsagePlanMixinProps.getTags()Sets the value ofCfnUsagePlanMixinProps.getThrottle()throttle(IResolvable throttle) Sets the value ofCfnUsagePlanMixinProps.getThrottle()usagePlanName(String usagePlanName) Sets the value ofCfnUsagePlanMixinProps.getUsagePlanName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiStages
Sets the value ofCfnUsagePlanMixinProps.getApiStages()- Parameters:
apiStages- The associated API stages of a usage plan.- Returns:
this
-
apiStages
@Stability(Stable) public CfnUsagePlanMixinProps.Builder apiStages(List<? extends Object> apiStages) Sets the value ofCfnUsagePlanMixinProps.getApiStages()- Parameters:
apiStages- The associated API stages of a usage plan.- Returns:
this
-
description
Sets the value ofCfnUsagePlanMixinProps.getDescription()- Parameters:
description- The description of a usage plan.- Returns:
this
-
quota
Sets the value ofCfnUsagePlanMixinProps.getQuota()- Parameters:
quota- The target maximum number of permitted requests per a given unit time interval.- Returns:
this
-
quota
@Stability(Stable) public CfnUsagePlanMixinProps.Builder quota(CfnUsagePlanPropsMixin.QuotaSettingsProperty quota) Sets the value ofCfnUsagePlanMixinProps.getQuota()- Parameters:
quota- The target maximum number of permitted requests per a given unit time interval.- Returns:
this
-
tags
Sets the value ofCfnUsagePlanMixinProps.getTags()- Parameters:
tags- The collection of tags. Each tag element is associated with a given resource.- Returns:
this
-
throttle
Sets the value ofCfnUsagePlanMixinProps.getThrottle()- Parameters:
throttle- A map containing method level throttling information for API stage in a usage plan.- Returns:
this
-
throttle
@Stability(Stable) public CfnUsagePlanMixinProps.Builder throttle(CfnUsagePlanPropsMixin.ThrottleSettingsProperty throttle) Sets the value ofCfnUsagePlanMixinProps.getThrottle()- Parameters:
throttle- A map containing method level throttling information for API stage in a usage plan.- Returns:
this
-
usagePlanName
Sets the value ofCfnUsagePlanMixinProps.getUsagePlanName()- Parameters:
usagePlanName- The name of a usage plan.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUsagePlanMixinProps>- Returns:
- a new instance of
CfnUsagePlanMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-