Class ApiKeyProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.ApiKeyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiKeyProps>
- Enclosing interface:
ApiKeyProps
@Stability(Stable)
public static final class ApiKeyProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApiKeyProps>
A builder for
ApiKeyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKeyName(String apiKeyName) Sets the value ofApiKeyOptions.getApiKeyName()build()Builds the configured instance.customerId(String customerId) Sets the value ofApiKeyProps.getCustomerId()description(String description) Sets the value ofApiKeyOptions.getDescription()Sets the value ofApiKeyProps.getEnabled()generateDistinctId(Boolean generateDistinctId) Sets the value ofApiKeyProps.getGenerateDistinctId()Sets the value ofApiKeyOptions.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customerId
Sets the value ofApiKeyProps.getCustomerId()- Parameters:
customerId- An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.- Returns:
this
-
enabled
Sets the value ofApiKeyProps.getEnabled()- Parameters:
enabled- Indicates whether the API key can be used by clients.- Returns:
this
-
generateDistinctId
Sets the value ofApiKeyProps.getGenerateDistinctId()- Parameters:
generateDistinctId- Specifies whether the key identifier is distinct from the created API key value.- Returns:
this
-
apiKeyName
Sets the value ofApiKeyOptions.getApiKeyName()- Parameters:
apiKeyName- A name for the API key. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name.- Returns:
this
-
description
Sets the value ofApiKeyOptions.getDescription()- Parameters:
description- A description of the purpose of the API key.- Returns:
this
-
value
Sets the value ofApiKeyOptions.getValue()- Parameters:
value- The value of the API key. Must be at least 20 characters long.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiKeyProps>- Returns:
- a new instance of
ApiKeyProps - Throws:
NullPointerException- if any required attribute was not provided
-