public static final class CfnApiKeyProps.Builder
extends java.lang.Object
CfnApiKeyProps
Constructor and Description |
---|
Builder() |
public CfnApiKeyProps.Builder customerId(java.lang.String customerId)
CfnApiKeyProps.getCustomerId()
customerId
- An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.this
public CfnApiKeyProps.Builder description(java.lang.String description)
CfnApiKeyProps.getDescription()
description
- A description of the purpose of the API key.this
public CfnApiKeyProps.Builder enabled(java.lang.Boolean enabled)
CfnApiKeyProps.getEnabled()
enabled
- Indicates whether the API key can be used by clients.this
public CfnApiKeyProps.Builder enabled(IResolvable enabled)
CfnApiKeyProps.getEnabled()
enabled
- Indicates whether the API key can be used by clients.this
public CfnApiKeyProps.Builder generateDistinctId(java.lang.Boolean generateDistinctId)
CfnApiKeyProps.getGenerateDistinctId()
generateDistinctId
- Specifies whether the key identifier is distinct from the created API key value.
This parameter is deprecated and should not be used.this
public CfnApiKeyProps.Builder generateDistinctId(IResolvable generateDistinctId)
CfnApiKeyProps.getGenerateDistinctId()
generateDistinctId
- Specifies whether the key identifier is distinct from the created API key value.
This parameter is deprecated and should not be used.this
public CfnApiKeyProps.Builder name(java.lang.String name)
CfnApiKeyProps.getName()
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.
this
public CfnApiKeyProps.Builder stageKeys(IResolvable stageKeys)
CfnApiKeyProps.getStageKeys()
stageKeys
- A list of stages to associate with this API key.this
public CfnApiKeyProps.Builder stageKeys(java.util.List<? extends java.lang.Object> stageKeys)
CfnApiKeyProps.getStageKeys()
stageKeys
- A list of stages to associate with this API key.this
public CfnApiKeyProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnApiKeyProps.getTags()
tags
- An array of arbitrary tags (key-value pairs) to associate with the API key.this
public CfnApiKeyProps.Builder value(java.lang.String value)
CfnApiKeyProps.getValue()
value
- The value of the API key.
Must be at least 20 characters long.this
public CfnApiKeyProps build()
CfnApiKeyProps
java.lang.NullPointerException
- if any required attribute was not provided