Class NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_services_edge_cache_service.NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule>
- Enclosing interface:
- NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule
@Stability(Stable) public static final class NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder extends Object implements software.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
matchRule
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder matchRule(com.hashicorp.cdktf.IResolvable matchRule)
- Parameters:
matchRule- match_rule block. 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#match_rule NetworkServicesEdgeCacheService#match_rule}- Returns:
this
-
matchRule
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder matchRule(List<? extends NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRuleMatchRule> matchRule)
- Parameters:
matchRule- match_rule block. 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#match_rule NetworkServicesEdgeCacheService#match_rule}- Returns:
this
-
priority
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder priority(String priority)
Sets the value ofNetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.getPriority()- Parameters:
priority- The priority of this route rule, where 1 is the highest priority. This parameter is required. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 1 and 999 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#priority NetworkServicesEdgeCacheService#priority}- Returns:
this
-
description
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder description(String description)
- Parameters:
description- A human-readable description of the routeRule. 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
-
headerAction
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder headerAction(NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRuleHeaderAction headerAction)
- Parameters:
headerAction- header_action block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#header_action NetworkServicesEdgeCacheService#header_action}- Returns:
this
-
origin
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder origin(String origin)
Sets the value ofNetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.getOrigin()- Parameters:
origin- The Origin resource that requests to this route should fetch from when a matching response is not in cache. Origins can be defined as short names ("my-origin") or fully-qualified resource URLs - e.g. "networkservices.googleapis.com/projects/my-project/global/edgecacheorigins/my-origin" Only one of origin or urlRedirect can be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#origin NetworkServicesEdgeCacheService#origin}- Returns:
this
-
routeAction
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder routeAction(NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRuleRouteAction routeAction)
- Parameters:
routeAction- route_action block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#route_action NetworkServicesEdgeCacheService#route_action}- Returns:
this
-
urlRedirect
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule.Builder urlRedirect(NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRuleUrlRedirect urlRedirect)
- Parameters:
urlRedirect- url_redirect block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#url_redirect NetworkServicesEdgeCacheService#url_redirect}- Returns:
this
-
build
@Stability(Stable) public NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule>- Returns:
- a new instance of
NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRule - Throws:
NullPointerException- if any required attribute was not provided
-
-