public static interface CreateUsagePlanRequest.Builder extends APIGatewayRequest.Builder, CopyableBuilder<CreateUsagePlanRequest.Builder,CreateUsagePlanRequest>
Modifier and Type | Method and Description |
---|---|
CreateUsagePlanRequest.Builder |
apiStages(ApiStage... apiStages)
The associated API stages of the usage plan.
|
CreateUsagePlanRequest.Builder |
apiStages(Collection<ApiStage> apiStages)
The associated API stages of the usage plan.
|
CreateUsagePlanRequest.Builder |
description(String description)
The description of the usage plan.
|
CreateUsagePlanRequest.Builder |
name(String name)
The name of the usage plan.
|
default CreateUsagePlanRequest.Builder |
quota(Consumer<QuotaSettings.Builder> quota)
The quota of the usage plan.
|
CreateUsagePlanRequest.Builder |
quota(QuotaSettings quota)
The quota of the usage plan.
|
CreateUsagePlanRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
default CreateUsagePlanRequest.Builder |
throttle(Consumer<ThrottleSettings.Builder> throttle)
The throttling limits of the usage plan.
|
CreateUsagePlanRequest.Builder |
throttle(ThrottleSettings throttle)
The throttling limits of the usage plan.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, 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 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 requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.