Class CfnApp.CacheConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApp.CacheConfigProperty>
- Enclosing interface:
CfnApp.CacheConfigProperty
@Stability(Stable)
public static final class CfnApp.CacheConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApp.CacheConfigProperty>
A builder for
CfnApp.CacheConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApp.CacheConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnApp.CacheConfigProperty.getType()- Parameters:
type- The type of cache configuration to use for an Amplify app. TheAMPLIFY_MANAGEDcache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules.The
AMPLIFY_MANAGED_NO_COOKIEScache configuration type is the same asAMPLIFY_MANAGED, except that it excludes all cookies from the cache key. This is the default setting.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApp.CacheConfigProperty>- Returns:
- a new instance of
CfnApp.CacheConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-