Class CachingConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CachingConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CachingConfig>
- Enclosing interface:
CachingConfig
@Stability(Experimental)
public static final class CachingConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CachingConfig>
A builder for
CachingConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cachingKeys
(List<String> cachingKeys) Sets the value ofCachingConfig.getCachingKeys()
Sets the value ofCachingConfig.getTtl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ttl
Sets the value ofCachingConfig.getTtl()
- Parameters:
ttl
- The TTL in seconds for a resolver that has caching enabled. This parameter is required. Valid values are between 1 and 3600 seconds.- Returns:
this
-
cachingKeys
Sets the value ofCachingConfig.getCachingKeys()
- Parameters:
cachingKeys
- The caching keys for a resolver that has caching enabled. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CachingConfig>
- Returns:
- a new instance of
CachingConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-