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
@Stability(Stable) public static CfnCachePolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnCachePolicy.Builder
.
-
cachePolicyConfig
The cache policy configuration.- Parameters:
cachePolicyConfig
- The cache policy configuration. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCachePolicy>
- Returns:
- a newly built instance of
CfnCachePolicy
.
-