Class CfnResolver.CachingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnResolver.CachingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResolver.CachingConfigProperty>
- Enclosing interface:
CfnResolver.CachingConfigProperty
@Stability(Stable)
public static final class CfnResolver.CachingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResolver.CachingConfigProperty>
A builder for
CfnResolver.CachingConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cachingKeys
(List<String> cachingKeys) Sets the value ofCfnResolver.CachingConfigProperty.getCachingKeys()
Sets the value ofCfnResolver.CachingConfigProperty.getTtl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ttl
Sets the value ofCfnResolver.CachingConfigProperty.getTtl()
- Parameters:
ttl
- The TTL in seconds for a resolver that has caching activated. This parameter is required. Valid values are 1–3,600 seconds.- Returns:
this
-
cachingKeys
@Stability(Stable) public CfnResolver.CachingConfigProperty.Builder cachingKeys(List<String> cachingKeys) Sets the value ofCfnResolver.CachingConfigProperty.getCachingKeys()
- Parameters:
cachingKeys
- The caching keys for a resolver that has caching activated. 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<CfnResolver.CachingConfigProperty>
- Returns:
- a new instance of
CfnResolver.CachingConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-