Class CfnCachePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnCachePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCachePolicyProps>
- Enclosing interface:
CfnCachePolicyProps
@Stability(Stable)
public static final class CfnCachePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCachePolicyProps>
A builder for
CfnCachePolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cachePolicyConfig
(IResolvable cachePolicyConfig) Sets the value ofCfnCachePolicyProps.getCachePolicyConfig()
cachePolicyConfig
(CfnCachePolicy.CachePolicyConfigProperty cachePolicyConfig) Sets the value ofCfnCachePolicyProps.getCachePolicyConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cachePolicyConfig
@Stability(Stable) public CfnCachePolicyProps.Builder cachePolicyConfig(IResolvable cachePolicyConfig) Sets the value ofCfnCachePolicyProps.getCachePolicyConfig()
- Parameters:
cachePolicyConfig
- The cache policy configuration. This parameter is required.- Returns:
this
-
cachePolicyConfig
@Stability(Stable) public CfnCachePolicyProps.Builder cachePolicyConfig(CfnCachePolicy.CachePolicyConfigProperty cachePolicyConfig) Sets the value ofCfnCachePolicyProps.getCachePolicyConfig()
- Parameters:
cachePolicyConfig
- The cache policy configuration. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCachePolicyProps>
- Returns:
- a new instance of
CfnCachePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-