All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cloudshiftdev.awscdk.services.cloudfront.ICachePolicy.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.awscdk.services.cloudfront

import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.String

/**
 * Represents a Cache Policy.
 */
public interface ICachePolicy {
  /**
   * The ID of the cache policy.
   */
  public fun cachePolicyId(): String

  private class Wrapper(
    cdkObject: software.amazon.awscdk.services.cloudfront.ICachePolicy,
  ) : CdkObject(cdkObject),
      ICachePolicy {
    /**
     * The ID of the cache policy.
     */
    override fun cachePolicyId(): String = unwrap(this).getCachePolicyId()
  }

  public companion object {
    internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudfront.ICachePolicy):
        ICachePolicy = CdkObjectWrappers.wrap(cdkObject) as? ICachePolicy ?: Wrapper(cdkObject)

    internal fun unwrap(wrapped: ICachePolicy):
        software.amazon.awscdk.services.cloudfront.ICachePolicy = (wrapped as CdkObject).cdkObject
        as software.amazon.awscdk.services.cloudfront.ICachePolicy
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy