Class CachePolicyArgs.Builder

  • Enclosing class:
    CachePolicyArgs

    public static final class CachePolicyArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • comment

        public CachePolicyArgs.Builder comment​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> comment)
        Parameters:
        comment - Description for the cache policy.
        Returns:
        builder
      • comment

        public CachePolicyArgs.Builder comment​(java.lang.String comment)
        Parameters:
        comment - Description for the cache policy.
        Returns:
        builder
      • defaultTtl

        public CachePolicyArgs.Builder defaultTtl​(@Nullable
                                                  com.pulumi.core.Output<java.lang.Integer> defaultTtl)
        Parameters:
        defaultTtl - Amount of time, in seconds, that objects are allowed to remain in the CloudFront cache before CloudFront sends a new request to the origin server to check if the object has been updated.
        Returns:
        builder
      • defaultTtl

        public CachePolicyArgs.Builder defaultTtl​(java.lang.Integer defaultTtl)
        Parameters:
        defaultTtl - Amount of time, in seconds, that objects are allowed to remain in the CloudFront cache before CloudFront sends a new request to the origin server to check if the object has been updated.
        Returns:
        builder
      • maxTtl

        public CachePolicyArgs.Builder maxTtl​(@Nullable
                                              com.pulumi.core.Output<java.lang.Integer> maxTtl)
        Parameters:
        maxTtl - Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
        Returns:
        builder
      • maxTtl

        public CachePolicyArgs.Builder maxTtl​(java.lang.Integer maxTtl)
        Parameters:
        maxTtl - Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated.
        Returns:
        builder
      • minTtl

        public CachePolicyArgs.Builder minTtl​(@Nullable
                                              com.pulumi.core.Output<java.lang.Integer> minTtl)
        Parameters:
        minTtl - Minimum amount of time, in seconds, that objects should remain in the CloudFront cache before a new request is sent to the origin to check for updates.
        Returns:
        builder
      • minTtl

        public CachePolicyArgs.Builder minTtl​(java.lang.Integer minTtl)
        Parameters:
        minTtl - Minimum amount of time, in seconds, that objects should remain in the CloudFront cache before a new request is sent to the origin to check for updates.
        Returns:
        builder
      • name

        public CachePolicyArgs.Builder name​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Unique name used to identify the cache policy.
        Returns:
        builder
      • name

        public CachePolicyArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Unique name used to identify the cache policy.
        Returns:
        builder
      • parametersInCacheKeyAndForwardedToOrigin

        public CachePolicyArgs.Builder parametersInCacheKeyAndForwardedToOrigin​(com.pulumi.core.Output<CachePolicyParametersInCacheKeyAndForwardedToOriginArgs> parametersInCacheKeyAndForwardedToOrigin)
        Parameters:
        parametersInCacheKeyAndForwardedToOrigin - Configuration for including HTTP headers, cookies, and URL query strings in the cache key. For more information, refer to the Parameters In Cache Key And Forwarded To Origin section.
        Returns:
        builder
      • parametersInCacheKeyAndForwardedToOrigin

        public CachePolicyArgs.Builder parametersInCacheKeyAndForwardedToOrigin​(CachePolicyParametersInCacheKeyAndForwardedToOriginArgs parametersInCacheKeyAndForwardedToOrigin)
        Parameters:
        parametersInCacheKeyAndForwardedToOrigin - Configuration for including HTTP headers, cookies, and URL query strings in the cache key. For more information, refer to the Parameters In Cache Key And Forwarded To Origin section.
        Returns:
        builder