Class CfnApiKeyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appsync.CfnApiKeyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiKeyMixinProps>
- Enclosing interface:
CfnApiKeyMixinProps
@Stability(Stable)
public static final class CfnApiKeyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiKeyMixinProps>
A builder for
CfnApiKeyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnApiKeyMixinProps.getApiId()build()Builds the configured instance.description(String description) Sets the value ofCfnApiKeyMixinProps.getDescription()Sets the value ofCfnApiKeyMixinProps.getExpires()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnApiKeyMixinProps.getApiId()- Parameters:
apiId- Unique AWS AppSync GraphQL API ID for this API key.- Returns:
this
-
description
Sets the value ofCfnApiKeyMixinProps.getDescription()- Parameters:
description- Unique description of your API key.- Returns:
this
-
expires
Sets the value ofCfnApiKeyMixinProps.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<CfnApiKeyMixinProps>- Returns:
- a new instance of
CfnApiKeyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-