Class AppSyncApiKeyConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.AppSyncApiKeyConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppSyncApiKeyConfig>
- Enclosing interface:
AppSyncApiKeyConfig
@Stability(Stable)
public static final class AppSyncApiKeyConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AppSyncApiKeyConfig>
A builder for
AppSyncApiKeyConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofAppSyncApiKeyConfig.getDescription()expires(Expiration expires) Sets the value ofAppSyncApiKeyConfig.getExpires()Sets the value ofAppSyncApiKeyConfig.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofAppSyncApiKeyConfig.getDescription()- Parameters:
description- Description of API key.- Returns:
this
-
expires
Sets the value ofAppSyncApiKeyConfig.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 ofAppSyncApiKeyConfig.getName()- Parameters:
name- Unique name of the API Key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AppSyncApiKeyConfig>- Returns:
- a new instance of
AppSyncApiKeyConfig - Throws:
NullPointerException- if any required attribute was not provided
-