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