Class ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_backend_service.ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy>
- Enclosing interface:
- ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy
@Stability(Stable) public static final class ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy>
A builder forComputeRegionBackendServiceCdnPolicyCacheKeyPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
includeHost
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder includeHost(Boolean includeHost)
Sets the value ofComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.getIncludeHost()- Parameters:
includeHost- If true requests to different hosts will be cached separately. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#include_host ComputeRegionBackendService#include_host}- Returns:
this
-
includeHost
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder includeHost(com.hashicorp.cdktf.IResolvable includeHost)
Sets the value ofComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.getIncludeHost()- Parameters:
includeHost- If true requests to different hosts will be cached separately. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#include_host ComputeRegionBackendService#include_host}- Returns:
this
-
includeNamedCookies
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder includeNamedCookies(List<String> includeNamedCookies)
- Parameters:
includeNamedCookies- Names of cookies to include in cache keys. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#include_named_cookies ComputeRegionBackendService#include_named_cookies}- Returns:
this
-
includeProtocol
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder includeProtocol(Boolean includeProtocol)
Sets the value ofComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.getIncludeProtocol()- Parameters:
includeProtocol- If true, http and https requests will be cached separately. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#include_protocol ComputeRegionBackendService#include_protocol}- Returns:
this
-
includeProtocol
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder includeProtocol(com.hashicorp.cdktf.IResolvable includeProtocol)
Sets the value ofComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.getIncludeProtocol()- Parameters:
includeProtocol- If true, http and https requests will be cached separately. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#include_protocol ComputeRegionBackendService#include_protocol}- Returns:
this
-
includeQueryString
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder includeQueryString(Boolean includeQueryString)
- Parameters:
includeQueryString- If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#include_query_string ComputeRegionBackendService#include_query_string}- Returns:
this
-
includeQueryString
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder includeQueryString(com.hashicorp.cdktf.IResolvable includeQueryString)
- Parameters:
includeQueryString- If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#include_query_string ComputeRegionBackendService#include_query_string}- Returns:
this
-
queryStringBlacklist
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder queryStringBlacklist(List<String> queryStringBlacklist)
- Parameters:
queryStringBlacklist- Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#query_string_blacklist ComputeRegionBackendService#query_string_blacklist}- Returns:
this
-
queryStringWhitelist
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy.Builder queryStringWhitelist(List<String> queryStringWhitelist)
- Parameters:
queryStringWhitelist- Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#query_string_whitelist ComputeRegionBackendService#query_string_whitelist}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy>- Returns:
- a new instance of
ComputeRegionBackendServiceCdnPolicyCacheKeyPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-