Class ComputeBackendBucketCdnPolicyNegativeCachingPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_backend_bucket.ComputeBackendBucketCdnPolicyNegativeCachingPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeBackendBucketCdnPolicyNegativeCachingPolicy>
- Enclosing interface:
- ComputeBackendBucketCdnPolicyNegativeCachingPolicy
@Stability(Stable) public static final class ComputeBackendBucketCdnPolicyNegativeCachingPolicy.Builder extends Object implements software.amazon.jsii.Builder<ComputeBackendBucketCdnPolicyNegativeCachingPolicy>
A builder forComputeBackendBucketCdnPolicyNegativeCachingPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeBackendBucketCdnPolicyNegativeCachingPolicybuild()Builds the configured instance.ComputeBackendBucketCdnPolicyNegativeCachingPolicy.Buildercode(Number code)Sets the value ofComputeBackendBucketCdnPolicyNegativeCachingPolicy.getCode()ComputeBackendBucketCdnPolicyNegativeCachingPolicy.Builderttl(Number ttl)Sets the value ofComputeBackendBucketCdnPolicyNegativeCachingPolicy.getTtl()
-
-
-
Method Detail
-
code
@Stability(Stable) public ComputeBackendBucketCdnPolicyNegativeCachingPolicy.Builder code(Number code)
Sets the value ofComputeBackendBucketCdnPolicyNegativeCachingPolicy.getCode()- Parameters:
code- The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 308, 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status code more than once. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#code ComputeBackendBucket#code}- Returns:
this
-
ttl
@Stability(Stable) public ComputeBackendBucketCdnPolicyNegativeCachingPolicy.Builder ttl(Number ttl)
Sets the value ofComputeBackendBucketCdnPolicyNegativeCachingPolicy.getTtl()- Parameters:
ttl- The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#ttl ComputeBackendBucket#ttl}- Returns:
this
-
build
@Stability(Stable) public ComputeBackendBucketCdnPolicyNegativeCachingPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeBackendBucketCdnPolicyNegativeCachingPolicy>- Returns:
- a new instance of
ComputeBackendBucketCdnPolicyNegativeCachingPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-