Class CfnApiKeyProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnApiKeyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiKeyProps>
- Enclosing interface:
CfnApiKeyProps
@Stability(Stable)
public static final class CfnApiKeyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiKeyProps>
A builder for
CfnApiKeyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customerId(String customerId) Sets the value ofCfnApiKeyProps.getCustomerId()description(String description) Sets the value ofCfnApiKeyProps.getDescription()Sets the value ofCfnApiKeyProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnApiKeyProps.getEnabled()generateDistinctId(Boolean generateDistinctId) Sets the value ofCfnApiKeyProps.getGenerateDistinctId()generateDistinctId(IResolvable generateDistinctId) Sets the value ofCfnApiKeyProps.getGenerateDistinctId()Sets the value ofCfnApiKeyProps.getName()Sets the value ofCfnApiKeyProps.getStageKeys()stageKeys(IResolvable stageKeys) Sets the value ofCfnApiKeyProps.getStageKeys()Sets the value ofCfnApiKeyProps.getTags()Sets the value ofCfnApiKeyProps.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customerId
Sets the value ofCfnApiKeyProps.getCustomerId()- Parameters:
customerId- An AWS Marketplace customer identifier, when integrating with the AWS SaaS Marketplace.- Returns:
this
-
description
Sets the value ofCfnApiKeyProps.getDescription()- Parameters:
description- The description of the ApiKey.- Returns:
this
-
enabled
Sets the value ofCfnApiKeyProps.getEnabled()- Parameters:
enabled- Specifies whether the ApiKey can be used by callers.- Returns:
this
-
enabled
Sets the value ofCfnApiKeyProps.getEnabled()- Parameters:
enabled- Specifies whether the ApiKey can be used by callers.- Returns:
this
-
generateDistinctId
Sets the value ofCfnApiKeyProps.getGenerateDistinctId()- 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:
this
-
generateDistinctId
Sets the value ofCfnApiKeyProps.getGenerateDistinctId()- 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:
this
-
name
Sets the value ofCfnApiKeyProps.getName()- Parameters:
name- 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. For more information, see Name Type .If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- Returns:
this
-
stageKeys
Sets the value ofCfnApiKeyProps.getStageKeys()- Parameters:
stageKeys- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.- Returns:
this
-
stageKeys
Sets the value ofCfnApiKeyProps.getStageKeys()- Parameters:
stageKeys- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.- Returns:
this
-
tags
Sets the value ofCfnApiKeyProps.getTags()- 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:
this
-
value
Sets the value ofCfnApiKeyProps.getValue()- Parameters:
value- Specifies a value of the API key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApiKeyProps>- Returns:
- a new instance of
CfnApiKeyProps - Throws:
NullPointerException- if any required attribute was not provided
-