Class CachePolicyReference.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CachePolicyReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CachePolicyReference>
- Enclosing interface:
CachePolicyReference
@Stability(Stable)
public static final class CachePolicyReference.Builder
extends Object
implements software.amazon.jsii.Builder<CachePolicyReference>
A builder for
CachePolicyReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cachePolicyId
(String cachePolicyId) Sets the value ofCachePolicyReference.getCachePolicyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cachePolicyId
Sets the value ofCachePolicyReference.getCachePolicyId()
- Parameters:
cachePolicyId
- The Id of the CachePolicy resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CachePolicyReference>
- Returns:
- a new instance of
CachePolicyReference
- Throws:
NullPointerException
- if any required attribute was not provided
-