Class ComputeUrlMapPathMatcherPathRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_url_map.ComputeUrlMapPathMatcherPathRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeUrlMapPathMatcherPathRule>
- Enclosing interface:
- ComputeUrlMapPathMatcherPathRule
@Stability(Stable) public static final class ComputeUrlMapPathMatcherPathRule.Builder extends Object implements software.amazon.jsii.Builder<ComputeUrlMapPathMatcherPathRule>
A builder forComputeUrlMapPathMatcherPathRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeUrlMapPathMatcherPathRulebuild()Builds the configured instance.ComputeUrlMapPathMatcherPathRule.Builderpaths(List<String> paths)Sets the value ofComputeUrlMapPathMatcherPathRule.getPaths()ComputeUrlMapPathMatcherPathRule.BuilderrouteAction(ComputeUrlMapPathMatcherPathRuleRouteAction routeAction)Sets the value ofComputeUrlMapPathMatcherPathRule.getRouteAction()ComputeUrlMapPathMatcherPathRule.Builderservice(String service)Sets the value ofComputeUrlMapPathMatcherPathRule.getService()ComputeUrlMapPathMatcherPathRule.BuilderurlRedirect(ComputeUrlMapPathMatcherPathRuleUrlRedirect urlRedirect)Sets the value ofComputeUrlMapPathMatcherPathRule.getUrlRedirect()
-
-
-
Method Detail
-
paths
@Stability(Stable) public ComputeUrlMapPathMatcherPathRule.Builder paths(List<String> paths)
Sets the value ofComputeUrlMapPathMatcherPathRule.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_url_map#paths ComputeUrlMap#paths}- Returns:
this
-
routeAction
@Stability(Stable) public ComputeUrlMapPathMatcherPathRule.Builder routeAction(ComputeUrlMapPathMatcherPathRuleRouteAction routeAction)
Sets the value ofComputeUrlMapPathMatcherPathRule.getRouteAction()- Parameters:
routeAction- route_action block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#route_action ComputeUrlMap#route_action}- Returns:
this
-
service
@Stability(Stable) public ComputeUrlMapPathMatcherPathRule.Builder service(String service)
Sets the value ofComputeUrlMapPathMatcherPathRule.getService()- Parameters:
service- The backend service or backend bucket to use if any of the given paths match. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#service ComputeUrlMap#service}- Returns:
this
-
urlRedirect
@Stability(Stable) public ComputeUrlMapPathMatcherPathRule.Builder urlRedirect(ComputeUrlMapPathMatcherPathRuleUrlRedirect urlRedirect)
Sets the value ofComputeUrlMapPathMatcherPathRule.getUrlRedirect()- Parameters:
urlRedirect- url_redirect block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#url_redirect ComputeUrlMap#url_redirect}- Returns:
this
-
build
@Stability(Stable) public ComputeUrlMapPathMatcherPathRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeUrlMapPathMatcherPathRule>- Returns:
- a new instance of
ComputeUrlMapPathMatcherPathRule - Throws:
NullPointerException- if any required attribute was not provided
-
-