Class CfnApiKeyProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.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 TypeMethodDescriptionSets the value ofCfnApiKeyProps.getApiId()Sets the value ofCfnApiKeyProps.getApiKeyId()build()Builds the configured instance.description(String description) Sets the value ofCfnApiKeyProps.getDescription()Sets the value ofCfnApiKeyProps.getExpires()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnApiKeyProps.getApiId()- Parameters:
apiId- Unique AWS AppSync GraphQL API ID for this API key. This parameter is required.- Returns:
this
-
apiKeyId
Sets the value ofCfnApiKeyProps.getApiKeyId()- Parameters:
apiKeyId- The API key ID.- Returns:
this
-
description
Sets the value ofCfnApiKeyProps.getDescription()- Parameters:
description- Unique description of your API key.- Returns:
this
-
expires
Sets the value ofCfnApiKeyProps.getExpires()- Parameters:
expires- The time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.- 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
-