Class ApiKeyConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.ApiKeyConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiKeyConfig>
- Enclosing interface:
ApiKeyConfig
@Stability(Stable)
public static final class ApiKeyConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ApiKeyConfig>
A builder for
ApiKeyConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofApiKeyConfig.getDescription()
expires
(Expiration expires) Sets the value ofApiKeyConfig.getExpires()
Sets the value ofApiKeyConfig.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofApiKeyConfig.getDescription()
- Parameters:
description
- Description of API key.- Returns:
this
-
expires
Sets the value ofApiKeyConfig.getExpires()
- Parameters:
expires
- The time from creation time after which the API key expires. It must be a minimum of 1 day and a maximum of 365 days from date of creation. Rounded down to the nearest hour.- Returns:
this
-
name
Sets the value ofApiKeyConfig.getName()
- Parameters:
name
- Unique name of the API Key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApiKeyConfig>
- Returns:
- a new instance of
ApiKeyConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-