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 Details

    • create

      @Stability(Stable) public static CfnCachePolicy.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnCachePolicy.Builder.
    • cachePolicyConfig

      @Stability(Stable) public CfnCachePolicy.Builder cachePolicyConfig(IResolvable 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

      @Stability(Stable) public CfnCachePolicy build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnCachePolicy>
      Returns:
      a newly built instance of CfnCachePolicy.