Class ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_backend_service.ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeBackendServiceCdnPolicyCacheKeyPolicy>
- Enclosing interface:
- ComputeBackendServiceCdnPolicyCacheKeyPolicy
@Stability(Stable) public static final class ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder extends Object implements software.amazon.jsii.Builder<ComputeBackendServiceCdnPolicyCacheKeyPolicy>
A builder forComputeBackendServiceCdnPolicyCacheKeyPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
includeHost
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder includeHost(Boolean includeHost)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.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_backend_service#include_host ComputeBackendService#include_host}- Returns:
this
-
includeHost
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder includeHost(com.hashicorp.cdktf.IResolvable includeHost)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.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_backend_service#include_host ComputeBackendService#include_host}- Returns:
this
-
includeHttpHeaders
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder includeHttpHeaders(List<String> includeHttpHeaders)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.getIncludeHttpHeaders()- Parameters:
includeHttpHeaders- Allows HTTP request headers (by name) to be used in the cache key. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#include_http_headers ComputeBackendService#include_http_headers}- Returns:
this
-
includeNamedCookies
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder includeNamedCookies(List<String> includeNamedCookies)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.getIncludeNamedCookies()- 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_backend_service#include_named_cookies ComputeBackendService#include_named_cookies}- Returns:
this
-
includeProtocol
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder includeProtocol(Boolean includeProtocol)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.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_backend_service#include_protocol ComputeBackendService#include_protocol}- Returns:
this
-
includeProtocol
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder includeProtocol(com.hashicorp.cdktf.IResolvable includeProtocol)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.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_backend_service#include_protocol ComputeBackendService#include_protocol}- Returns:
this
-
includeQueryString
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder includeQueryString(Boolean includeQueryString)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.getIncludeQueryString()- 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_backend_service#include_query_string ComputeBackendService#include_query_string}- Returns:
this
-
includeQueryString
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder includeQueryString(com.hashicorp.cdktf.IResolvable includeQueryString)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.getIncludeQueryString()- 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_backend_service#include_query_string ComputeBackendService#include_query_string}- Returns:
this
-
queryStringBlacklist
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder queryStringBlacklist(List<String> queryStringBlacklist)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.getQueryStringBlacklist()- 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_backend_service#query_string_blacklist ComputeBackendService#query_string_blacklist}- Returns:
this
-
queryStringWhitelist
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy.Builder queryStringWhitelist(List<String> queryStringWhitelist)
Sets the value ofComputeBackendServiceCdnPolicyCacheKeyPolicy.getQueryStringWhitelist()- 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_backend_service#query_string_whitelist ComputeBackendService#query_string_whitelist}- Returns:
this
-
build
@Stability(Stable) public ComputeBackendServiceCdnPolicyCacheKeyPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeBackendServiceCdnPolicyCacheKeyPolicy>- Returns:
- a new instance of
ComputeBackendServiceCdnPolicyCacheKeyPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-