java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codepipeline.actions.CacheControl
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.349Z") @Stability(Stable) public class CacheControl extends software.amazon.jsii.JsiiObject
Used for HTTP cache-control header, which influences downstream caches.

Use the provided static factory methods to construct instances of this class. Used in the S3DeployActionProps.cacheControl property.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codepipeline.actions.*;
 CacheControl cacheControl = CacheControl.fromString("s");
 

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CacheControl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    CacheControl(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Allows you to create an arbitrary cache control directive, in case our support is missing a method for a particular directive.
    the actual text value of the created directive.
    The 'max-age' cache control directive.
    The 'must-revalidate' cache control directive.
    The 'no-cache' cache control directive.
    The 'no-transform' cache control directive.
    The 'proxy-revalidate' cache control directive.
    The 'private' cache control directive.
    The 'public' cache control directive.
    void
    the actual text value of the created directive.
    The 's-max-age' cache control directive.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • CacheControl

      protected CacheControl(software.amazon.jsii.JsiiObjectRef objRef)
    • CacheControl

      protected CacheControl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • fromString

      @Stability(Stable) @NotNull public static CacheControl fromString(@NotNull String s)
      Allows you to create an arbitrary cache control directive, in case our support is missing a method for a particular directive.

      Parameters:
      s - This parameter is required.
    • maxAge

      @Stability(Stable) @NotNull public static CacheControl maxAge(@NotNull Duration t)
      The 'max-age' cache control directive.

      Parameters:
      t - This parameter is required.
    • mustRevalidate

      @Stability(Stable) @NotNull public static CacheControl mustRevalidate()
      The 'must-revalidate' cache control directive.
    • noCache

      @Stability(Stable) @NotNull public static CacheControl noCache()
      The 'no-cache' cache control directive.
    • noTransform

      @Stability(Stable) @NotNull public static CacheControl noTransform()
      The 'no-transform' cache control directive.
    • proxyRevalidate

      @Stability(Stable) @NotNull public static CacheControl proxyRevalidate()
      The 'proxy-revalidate' cache control directive.
    • setPrivate

      @Stability(Stable) @NotNull public static CacheControl setPrivate()
      The 'private' cache control directive.
    • setPublic

      @Stability(Stable) @NotNull public static CacheControl setPublic()
      The 'public' cache control directive.
    • sMaxAge

      @Stability(Stable) @NotNull public static CacheControl sMaxAge(@NotNull Duration t)
      The 's-max-age' cache control directive.

      Parameters:
      t - This parameter is required.
    • getValue

      @Stability(Stable) @NotNull public String getValue()
      the actual text value of the created directive.
    • setValue

      @Stability(Stable) public void setValue(@NotNull String value)
      the actual text value of the created directive.