Class NetworkServicesEdgeCacheServiceRoutingHostRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_services_edge_cache_service.NetworkServicesEdgeCacheServiceRoutingHostRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceRoutingHostRule>
- Enclosing interface:
- NetworkServicesEdgeCacheServiceRoutingHostRule
@Stability(Stable) public static final class NetworkServicesEdgeCacheServiceRoutingHostRule.Builder extends Object implements software.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceRoutingHostRule>
A builder forNetworkServicesEdgeCacheServiceRoutingHostRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkServicesEdgeCacheServiceRoutingHostRulebuild()Builds the configured instance.NetworkServicesEdgeCacheServiceRoutingHostRule.Builderdescription(String description)Sets the value ofNetworkServicesEdgeCacheServiceRoutingHostRule.getDescription()NetworkServicesEdgeCacheServiceRoutingHostRule.Builderhosts(List<String> hosts)Sets the value ofNetworkServicesEdgeCacheServiceRoutingHostRule.getHosts()NetworkServicesEdgeCacheServiceRoutingHostRule.BuilderpathMatcher(String pathMatcher)Sets the value ofNetworkServicesEdgeCacheServiceRoutingHostRule.getPathMatcher()
-
-
-
Method Detail
-
hosts
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingHostRule.Builder hosts(List<String> hosts)
Sets the value ofNetworkServicesEdgeCacheServiceRoutingHostRule.getHosts()- Parameters:
hosts- The list of host patterns to match. This parameter is required. Host patterns must be valid hostnames. Ports are not allowed. Wildcard hosts are supported in the suffix or prefix form. * matches any string of ([a-z0-9-.]*). It does not match the empty string. When multiple hosts are specified, hosts are matched in the following priority: 1. Exact domain names: ''www.foo.com''. 2. Suffix domain wildcards: ''*.foo.com'' or ''*-bar.foo.com''. 3. Prefix domain wildcards: ''foo.*'' or ''foo-*''. 4. Special wildcard ''*'' matching any domain. Notes: ``` The wildcard will not match the empty string. e.g. ''*-bar.foo.com'' will match ''baz-bar.foo.com'' but not ''-bar.foo.com''. The longest wildcards match first. Only a single host in the entire service can match on ''*''. A domain must be unique across all configured hosts within a service. Hosts are matched against the HTTP Host header, or for HTTP/2 and HTTP/3, the ":authority" header, from the incoming request. You may specify up to 10 hosts. ``` Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#hosts NetworkServicesEdgeCacheService#hosts}- Returns:
this
-
pathMatcher
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingHostRule.Builder pathMatcher(String pathMatcher)
Sets the value ofNetworkServicesEdgeCacheServiceRoutingHostRule.getPathMatcher()- Parameters:
pathMatcher- The name of the pathMatcher associated with this hostRule. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#path_matcher NetworkServicesEdgeCacheService#path_matcher}- Returns:
this
-
description
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingHostRule.Builder description(String description)
Sets the value ofNetworkServicesEdgeCacheServiceRoutingHostRule.getDescription()- Parameters:
description- A human-readable description of the hostRule. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#description NetworkServicesEdgeCacheService#description}- Returns:
this
-
build
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingHostRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceRoutingHostRule>- Returns:
- a new instance of
NetworkServicesEdgeCacheServiceRoutingHostRule - Throws:
NullPointerException- if any required attribute was not provided
-
-