public static interface CreateUsagePlanRequest.Builder extends ApiGatewayRequest.Builder, CopyableBuilder<CreateUsagePlanRequest.Builder,CreateUsagePlanRequest>
build
overrideConfiguration
copy
applyMutation, build
CreateUsagePlanRequest.Builder name(String name)
The name of the usage plan.
name
- The name of the usage plan.CreateUsagePlanRequest.Builder description(String description)
The description of the usage plan.
description
- The description of the usage plan.CreateUsagePlanRequest.Builder apiStages(Collection<ApiStage> apiStages)
The associated API stages of the usage plan.
apiStages
- The associated API stages of the usage plan.CreateUsagePlanRequest.Builder apiStages(ApiStage... apiStages)
The associated API stages of the usage plan.
apiStages
- The associated API stages of the usage plan.CreateUsagePlanRequest.Builder apiStages(Consumer<ApiStage.Builder>... apiStages)
The associated API stages of the usage plan.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #apiStages(List)
.apiStages
- a consumer that will call methods on List.Builder
#apiStages(List)
CreateUsagePlanRequest.Builder throttle(ThrottleSettings throttle)
The throttling limits of the usage plan.
throttle
- The throttling limits of the usage plan.default CreateUsagePlanRequest.Builder throttle(Consumer<ThrottleSettings.Builder> throttle)
The throttling limits of the usage plan.
This is a convenience that creates an instance of theThrottleSettings.Builder
avoiding the need to
create one manually via ThrottleSettings.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to throttle(ThrottleSettings)
.throttle
- a consumer that will call methods on ThrottleSettings.Builder
throttle(ThrottleSettings)
CreateUsagePlanRequest.Builder quota(QuotaSettings quota)
The quota of the usage plan.
quota
- The quota of the usage plan.default CreateUsagePlanRequest.Builder quota(Consumer<QuotaSettings.Builder> quota)
The quota of the usage plan.
This is a convenience that creates an instance of theQuotaSettings.Builder
avoiding the need to
create one manually via QuotaSettings.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to quota(QuotaSettings)
.quota
- a consumer that will call methods on QuotaSettings.Builder
quota(QuotaSettings)
CreateUsagePlanRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateUsagePlanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.