Class ComputeBackendServiceCdnPolicyNegativeCachingPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_backend_service.ComputeBackendServiceCdnPolicyNegativeCachingPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeBackendServiceCdnPolicyNegativeCachingPolicy>
- Enclosing interface:
- ComputeBackendServiceCdnPolicyNegativeCachingPolicy
@Stability(Stable) public static final class ComputeBackendServiceCdnPolicyNegativeCachingPolicy.Builder extends Object implements software.amazon.jsii.Builder<ComputeBackendServiceCdnPolicyNegativeCachingPolicy>
A builder forComputeBackendServiceCdnPolicyNegativeCachingPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeBackendServiceCdnPolicyNegativeCachingPolicybuild()Builds the configured instance.ComputeBackendServiceCdnPolicyNegativeCachingPolicy.Buildercode(Number code)Sets the value ofComputeBackendServiceCdnPolicyNegativeCachingPolicy.getCode()ComputeBackendServiceCdnPolicyNegativeCachingPolicy.Builderttl(Number ttl)Sets the value ofComputeBackendServiceCdnPolicyNegativeCachingPolicy.getTtl()
-
-
-
Method Detail
-
code
@Stability(Stable) public ComputeBackendServiceCdnPolicyNegativeCachingPolicy.Builder code(Number code)
Sets the value ofComputeBackendServiceCdnPolicyNegativeCachingPolicy.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_service#code ComputeBackendService#code}- Returns:
this
-
ttl
@Stability(Stable) public ComputeBackendServiceCdnPolicyNegativeCachingPolicy.Builder ttl(Number ttl)
Sets the value ofComputeBackendServiceCdnPolicyNegativeCachingPolicy.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_service#ttl ComputeBackendService#ttl}- Returns:
this
-
build
@Stability(Stable) public ComputeBackendServiceCdnPolicyNegativeCachingPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeBackendServiceCdnPolicyNegativeCachingPolicy>- Returns:
- a new instance of
ComputeBackendServiceCdnPolicyNegativeCachingPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-