Interface CreateUsagePlanResponse.Builder
-
- All Superinterfaces:
ApiGatewayResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<CreateUsagePlanResponse.Builder,CreateUsagePlanResponse>,SdkBuilder<CreateUsagePlanResponse.Builder,CreateUsagePlanResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateUsagePlanResponse
public static interface CreateUsagePlanResponse.Builder extends ApiGatewayResponse.Builder, SdkPojo, CopyableBuilder<CreateUsagePlanResponse.Builder,CreateUsagePlanResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateUsagePlanResponse.BuilderapiStages(Collection<ApiStage> apiStages)The associated API stages of a usage plan.CreateUsagePlanResponse.BuilderapiStages(Consumer<ApiStage.Builder>... apiStages)The associated API stages of a usage plan.CreateUsagePlanResponse.BuilderapiStages(ApiStage... apiStages)The associated API stages of a usage plan.CreateUsagePlanResponse.Builderdescription(String description)The description of a usage plan.CreateUsagePlanResponse.Builderid(String id)The identifier of a UsagePlan resource.CreateUsagePlanResponse.Buildername(String name)The name of a usage plan.CreateUsagePlanResponse.BuilderproductCode(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 CreateUsagePlanResponse.Builderquota(Consumer<QuotaSettings.Builder> quota)The target maximum number of permitted requests per a given unit time interval.CreateUsagePlanResponse.Builderquota(QuotaSettings quota)The target maximum number of permitted requests per a given unit time interval.CreateUsagePlanResponse.Buildertags(Map<String,String> tags)The collection of tags.default CreateUsagePlanResponse.Builderthrottle(Consumer<ThrottleSettings.Builder> throttle)A map containing method level throttling information for API stage in a usage plan.CreateUsagePlanResponse.Builderthrottle(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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
id
CreateUsagePlanResponse.Builder id(String 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
CreateUsagePlanResponse.Builder name(String 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
CreateUsagePlanResponse.Builder description(String 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
CreateUsagePlanResponse.Builder apiStages(Collection<ApiStage> 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
CreateUsagePlanResponse.Builder apiStages(ApiStage... 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
CreateUsagePlanResponse.Builder apiStages(Consumer<ApiStage.Builder>... apiStages)
The associated API stages of a usage plan.
This is a convenience method that creates an instance of theApiStage.Builderavoiding the need to create one manually viaApiStage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#apiStages(List.) - 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:
#apiStages(java.util.Collection)
-
throttle
CreateUsagePlanResponse.Builder throttle(ThrottleSettings 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
default CreateUsagePlanResponse.Builder throttle(Consumer<ThrottleSettings.Builder> 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.Builderavoiding the need to create one manually viaThrottleSettings.builder().When the
Consumercompletes,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:
throttle(ThrottleSettings)
-
quota
CreateUsagePlanResponse.Builder quota(QuotaSettings 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
default CreateUsagePlanResponse.Builder quota(Consumer<QuotaSettings.Builder> 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.Builderavoiding the need to create one manually viaQuotaSettings.builder().When the
Consumercompletes,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:
quota(QuotaSettings)
-
productCode
CreateUsagePlanResponse.Builder 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.
- 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
CreateUsagePlanResponse.Builder tags(Map<String,String> 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.
-
-