Class ComputeRegionUrlMapPathMatcherPathRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapPathMatcherPathRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherPathRule>
- Enclosing interface:
- ComputeRegionUrlMapPathMatcherPathRule
@Stability(Stable) public static final class ComputeRegionUrlMapPathMatcherPathRule.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherPathRule>
A builder forComputeRegionUrlMapPathMatcherPathRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionUrlMapPathMatcherPathRulebuild()Builds the configured instance.ComputeRegionUrlMapPathMatcherPathRule.Builderpaths(List<String> paths)Sets the value ofComputeRegionUrlMapPathMatcherPathRule.getPaths()ComputeRegionUrlMapPathMatcherPathRule.BuilderrouteAction(ComputeRegionUrlMapPathMatcherPathRuleRouteAction routeAction)Sets the value ofComputeRegionUrlMapPathMatcherPathRule.getRouteAction()ComputeRegionUrlMapPathMatcherPathRule.Builderservice(String service)Sets the value ofComputeRegionUrlMapPathMatcherPathRule.getService()ComputeRegionUrlMapPathMatcherPathRule.BuilderurlRedirect(ComputeRegionUrlMapPathMatcherPathRuleUrlRedirect urlRedirect)Sets the value ofComputeRegionUrlMapPathMatcherPathRule.getUrlRedirect()
-
-
-
Method Detail
-
paths
@Stability(Stable) public ComputeRegionUrlMapPathMatcherPathRule.Builder paths(List<String> paths)
Sets the value ofComputeRegionUrlMapPathMatcherPathRule.getPaths()- Parameters:
paths- The list of path patterns to match. This parameter is required. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#paths ComputeRegionUrlMap#paths}- Returns:
this
-
routeAction
@Stability(Stable) public ComputeRegionUrlMapPathMatcherPathRule.Builder routeAction(ComputeRegionUrlMapPathMatcherPathRuleRouteAction routeAction)
Sets the value ofComputeRegionUrlMapPathMatcherPathRule.getRouteAction()- Parameters:
routeAction- route_action block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#route_action ComputeRegionUrlMap#route_action}- Returns:
this
-
service
@Stability(Stable) public ComputeRegionUrlMapPathMatcherPathRule.Builder service(String service)
Sets the value ofComputeRegionUrlMapPathMatcherPathRule.getService()- Parameters:
service- The region backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#service ComputeRegionUrlMap#service}- Returns:
this
-
urlRedirect
@Stability(Stable) public ComputeRegionUrlMapPathMatcherPathRule.Builder urlRedirect(ComputeRegionUrlMapPathMatcherPathRuleUrlRedirect urlRedirect)
Sets the value ofComputeRegionUrlMapPathMatcherPathRule.getUrlRedirect()- Parameters:
urlRedirect- url_redirect block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#url_redirect ComputeRegionUrlMap#url_redirect}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionUrlMapPathMatcherPathRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherPathRule>- Returns:
- a new instance of
ComputeRegionUrlMapPathMatcherPathRule - Throws:
NullPointerException- if any required attribute was not provided
-
-