Class ComputeUrlMapPathMatcher.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_url_map.ComputeUrlMapPathMatcher.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeUrlMapPathMatcher>
- Enclosing interface:
- ComputeUrlMapPathMatcher
@Stability(Stable) public static final class ComputeUrlMapPathMatcher.Builder extends Object implements software.amazon.jsii.Builder<ComputeUrlMapPathMatcher>
A builder forComputeUrlMapPathMatcher
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder name(String name)
Sets the value ofComputeUrlMapPathMatcher.getName()- Parameters:
name- The name to which this PathMatcher is referred by the HostRule. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#name ComputeUrlMap#name}- Returns:
this
-
defaultRouteAction
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder defaultRouteAction(ComputeUrlMapPathMatcherDefaultRouteAction defaultRouteAction)
Sets the value ofComputeUrlMapPathMatcher.getDefaultRouteAction()- Parameters:
defaultRouteAction- default_route_action block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#default_route_action ComputeUrlMap#default_route_action}- Returns:
this
-
defaultService
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder defaultService(String defaultService)
Sets the value ofComputeUrlMapPathMatcher.getDefaultService()- Parameters:
defaultService- The backend service or backend bucket to use when none 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#default_service ComputeUrlMap#default_service}- Returns:
this
-
defaultUrlRedirect
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder defaultUrlRedirect(ComputeUrlMapPathMatcherDefaultUrlRedirect defaultUrlRedirect)
Sets the value ofComputeUrlMapPathMatcher.getDefaultUrlRedirect()- Parameters:
defaultUrlRedirect- default_url_redirect block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#default_url_redirect ComputeUrlMap#default_url_redirect}- Returns:
this
-
description
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder description(String description)
Sets the value ofComputeUrlMapPathMatcher.getDescription()- Parameters:
description- An optional description of this resource. Provide this property when you create the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#description ComputeUrlMap#description}- Returns:
this
-
headerAction
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder headerAction(ComputeUrlMapPathMatcherHeaderAction headerAction)
Sets the value ofComputeUrlMapPathMatcher.getHeaderAction()- Parameters:
headerAction- header_action block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#header_action ComputeUrlMap#header_action}- Returns:
this
-
pathRule
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder pathRule(com.hashicorp.cdktf.IResolvable pathRule)
Sets the value ofComputeUrlMapPathMatcher.getPathRule()- Parameters:
pathRule- path_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#path_rule ComputeUrlMap#path_rule}- Returns:
this
-
pathRule
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder pathRule(List<? extends ComputeUrlMapPathMatcherPathRule> pathRule)
Sets the value ofComputeUrlMapPathMatcher.getPathRule()- Parameters:
pathRule- path_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#path_rule ComputeUrlMap#path_rule}- Returns:
this
-
routeRules
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder routeRules(com.hashicorp.cdktf.IResolvable routeRules)
Sets the value ofComputeUrlMapPathMatcher.getRouteRules()- Parameters:
routeRules- route_rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#route_rules ComputeUrlMap#route_rules}- Returns:
this
-
routeRules
@Stability(Stable) public ComputeUrlMapPathMatcher.Builder routeRules(List<? extends ComputeUrlMapPathMatcherRouteRules> routeRules)
Sets the value ofComputeUrlMapPathMatcher.getRouteRules()- Parameters:
routeRules- route_rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#route_rules ComputeUrlMap#route_rules}- Returns:
this
-
build
@Stability(Stable) public ComputeUrlMapPathMatcher build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeUrlMapPathMatcher>- Returns:
- a new instance of
ComputeUrlMapPathMatcher - Throws:
NullPointerException- if any required attribute was not provided
-
-