Interface GetUsagePlanResponse.Builder
- All Superinterfaces:
ApiGatewayResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<GetUsagePlanResponse.Builder,
,GetUsagePlanResponse> SdkBuilder<GetUsagePlanResponse.Builder,
,GetUsagePlanResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetUsagePlanResponse
-
Method Summary
Modifier and TypeMethodDescriptionapiStages
(Collection<ApiStage> apiStages) The associated API stages of a usage plan.apiStages
(Consumer<ApiStage.Builder>... apiStages) The associated API stages of a usage plan.The associated API stages of a usage plan.description
(String description) The description of a usage plan.The identifier of a UsagePlan resource.The name of a usage plan.productCode
(String productCode) The Amazon Web Services Marketplace product identifier to associate with the usage plan as a SaaS product on the Amazon Web Services Marketplace.default GetUsagePlanResponse.Builder
quota
(Consumer<QuotaSettings.Builder> quota) The target maximum number of permitted requests per a given unit time interval.quota
(QuotaSettings quota) The target maximum number of permitted requests per a given unit time interval.The collection of tags.default GetUsagePlanResponse.Builder
throttle
(Consumer<ThrottleSettings.Builder> throttle) A map containing method level throttling information for API stage in a usage plan.throttle
(ThrottleSettings throttle) A map containing method level throttling information for API stage in a usage plan.Methods inherited from interface software.amazon.awssdk.services.apigateway.model.ApiGatewayResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
id
The identifier of a UsagePlan resource.
- Parameters:
id
- The identifier of a UsagePlan resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of a usage plan.
- Parameters:
name
- The name of a usage plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of a usage plan.
- Parameters:
description
- The description of a usage plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiStages
The associated API stages of a usage plan.
- Parameters:
apiStages
- The associated API stages of a usage plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiStages
The associated API stages of a usage plan.
- Parameters:
apiStages
- The associated API stages of a usage plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiStages
The associated API stages of a usage plan.
This is a convenience method that creates an instance of theApiStage.Builder
avoiding the need to create one manually viaApiStage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapiStages(List<ApiStage>)
.- Parameters:
apiStages
- a consumer that will call methods onApiStage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
throttle
A map containing method level throttling information for API stage in a usage plan.
- Parameters:
throttle
- A map containing method level throttling information for API stage in a usage plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
throttle
A map containing method level throttling information for API stage in a usage plan.
This is a convenience method that creates an instance of theThrottleSettings.Builder
avoiding the need to create one manually viaThrottleSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tothrottle(ThrottleSettings)
.- Parameters:
throttle
- a consumer that will call methods onThrottleSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
quota
The target maximum number of permitted requests per a given unit time interval.
- Parameters:
quota
- The target maximum number of permitted requests per a given unit time interval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quota
The target maximum number of permitted requests per a given unit time interval.
This is a convenience method that creates an instance of theQuotaSettings.Builder
avoiding the need to create one manually viaQuotaSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toquota(QuotaSettings)
.- Parameters:
quota
- a consumer that will call methods onQuotaSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productCode
The Amazon Web Services Marketplace product identifier to associate with the usage plan as a SaaS product on the Amazon Web Services Marketplace.
- Parameters:
productCode
- The Amazon Web Services Marketplace product identifier to associate with the usage plan as a SaaS product on the Amazon Web Services Marketplace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The collection of tags. Each tag element is associated with a given resource.
- Parameters:
tags
- The collection of tags. Each tag element is associated with a given resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-