Class CfnCachePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnCachePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCachePolicy>
- Enclosing class:
CfnCachePolicy
@Stability(Stable)
public static final class CfnCachePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCachePolicy>
A fluent builder for
CfnCachePolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
cachePolicyConfig
(IResolvable cachePolicyConfig) The cache policy configuration.cachePolicyConfig
(CfnCachePolicy.CachePolicyConfigProperty cachePolicyConfig) The cache policy configuration.static CfnCachePolicy.Builder
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnCachePolicy.Builder
.
-
cachePolicyConfig
The cache policy configuration.- Parameters:
cachePolicyConfig
- The cache policy configuration. This parameter is required.- Returns:
this
-
cachePolicyConfig
@Stability(Stable) public CfnCachePolicy.Builder cachePolicyConfig(CfnCachePolicy.CachePolicyConfigProperty cachePolicyConfig) The cache policy configuration.- Parameters:
cachePolicyConfig
- The cache policy configuration. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCachePolicy>
- Returns:
- a newly built instance of
CfnCachePolicy
.
-