Interface CreateApiKeyRequest.Builder
-
- All Superinterfaces:
ApiGatewayRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateApiKeyRequest.Builder,CreateApiKeyRequest>,SdkBuilder<CreateApiKeyRequest.Builder,CreateApiKeyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateApiKeyRequest
public static interface CreateApiKeyRequest.Builder extends ApiGatewayRequest.Builder, SdkPojo, CopyableBuilder<CreateApiKeyRequest.Builder,CreateApiKeyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateApiKeyRequest.BuildercustomerId(String customerId)An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.CreateApiKeyRequest.Builderdescription(String description)The description of the ApiKey.CreateApiKeyRequest.Builderenabled(Boolean enabled)Specifies whether the ApiKey can be used by callers.CreateApiKeyRequest.BuildergenerateDistinctId(Boolean generateDistinctId)Specifies whether (true) or not (false) the key identifier is distinct from the created API key value.CreateApiKeyRequest.Buildername(String name)The name of the ApiKey.CreateApiKeyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateApiKeyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateApiKeyRequest.BuilderstageKeys(Collection<StageKey> stageKeys)DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.CreateApiKeyRequest.BuilderstageKeys(Consumer<StageKey.Builder>... stageKeys)DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.CreateApiKeyRequest.BuilderstageKeys(StageKey... stageKeys)DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.CreateApiKeyRequest.Buildertags(Map<String,String> tags)The key-value map of strings.CreateApiKeyRequest.Buildervalue(String value)Specifies a value of the API key.-
Methods inherited from interface software.amazon.awssdk.services.apigateway.model.ApiGatewayRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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
-
-
-
-
Method Detail
-
name
CreateApiKeyRequest.Builder name(String name)
The name of the ApiKey.
- Parameters:
name- The name of the ApiKey.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateApiKeyRequest.Builder description(String description)
The description of the ApiKey.
- Parameters:
description- The description of the ApiKey.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabled
CreateApiKeyRequest.Builder enabled(Boolean enabled)
Specifies whether the ApiKey can be used by callers.
- Parameters:
enabled- Specifies whether the ApiKey can be used by callers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generateDistinctId
CreateApiKeyRequest.Builder generateDistinctId(Boolean generateDistinctId)
Specifies whether (
true) or not (false) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.- Parameters:
generateDistinctId- Specifies whether (true) or not (false) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
CreateApiKeyRequest.Builder value(String value)
Specifies a value of the API key.
- Parameters:
value- Specifies a value of the API key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stageKeys
CreateApiKeyRequest.Builder stageKeys(Collection<StageKey> stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
- Parameters:
stageKeys- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stageKeys
CreateApiKeyRequest.Builder stageKeys(StageKey... stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
- Parameters:
stageKeys- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stageKeys
CreateApiKeyRequest.Builder stageKeys(Consumer<StageKey.Builder>... stageKeys)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
This is a convenience method that creates an instance of theStageKey.Builderavoiding the need to create one manually viaStageKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#stageKeys(List.) - Parameters:
stageKeys- a consumer that will call methods onStageKey.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#stageKeys(java.util.Collection)
-
customerId
CreateApiKeyRequest.Builder customerId(String customerId)
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
- Parameters:
customerId- An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateApiKeyRequest.Builder tags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:. The tag value can be up to 256 characters.- Parameters:
tags- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start withaws:. The tag value can be up to 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateApiKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateApiKeyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-