public static interface CreateApiKeyRequest.Builder extends ApiGatewayRequest.Builder, CopyableBuilder<CreateApiKeyRequest.Builder,CreateApiKeyRequest>
Modifier and Type | Method and Description |
---|---|
CreateApiKeyRequest.Builder |
customerId(String customerId)
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
|
CreateApiKeyRequest.Builder |
description(String description)
The description of the ApiKey.
|
CreateApiKeyRequest.Builder |
enabled(Boolean enabled)
Specifies whether the ApiKey can be used by callers.
|
CreateApiKeyRequest.Builder |
generateDistinctId(Boolean generateDistinctId)
Specifies whether (
true ) or not (false ) the key identifier is distinct from the
created API key value. |
CreateApiKeyRequest.Builder |
name(String name)
The name of the ApiKey.
|
CreateApiKeyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateApiKeyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateApiKeyRequest.Builder |
stageKeys(Collection<StageKey> stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
CreateApiKeyRequest.Builder |
stageKeys(Consumer<StageKey.Builder>... stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
CreateApiKeyRequest.Builder |
stageKeys(StageKey... stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
CreateApiKeyRequest.Builder |
value(String value)
Specifies a value of the API key.
|
build
overrideConfiguration
copy
applyMutation, build
CreateApiKeyRequest.Builder name(String name)
The name of the ApiKey.
name
- The name of the ApiKey.CreateApiKeyRequest.Builder description(String description)
The description of the ApiKey.
description
- The description of the ApiKey.CreateApiKeyRequest.Builder enabled(Boolean enabled)
Specifies whether the ApiKey can be used by callers.
enabled
- Specifies whether the ApiKey can be used by callers.CreateApiKeyRequest.Builder generateDistinctId(Boolean generateDistinctId)
Specifies whether (true
) or not (false
) the key identifier is distinct from the
created API key value.
generateDistinctId
- Specifies whether (true
) or not (false
) the key identifier is distinct from
the created API key value.CreateApiKeyRequest.Builder value(String value)
Specifies a value of the API key.
value
- Specifies a value of the API key.CreateApiKeyRequest.Builder stageKeys(Collection<StageKey> stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
stageKeys
- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.CreateApiKeyRequest.Builder stageKeys(StageKey... stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
stageKeys
- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.CreateApiKeyRequest.Builder stageKeys(Consumer<StageKey.Builder>... stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
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 #stageKeys(List)
.stageKeys
- a consumer that will call methods on List.Builder
#stageKeys(List)
CreateApiKeyRequest.Builder customerId(String customerId)
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
customerId
- An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.CreateApiKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateApiKeyRequest.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.