Class ComputeRegionUrlMapPathMatcher.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapPathMatcher.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcher>
- Enclosing interface:
- ComputeRegionUrlMapPathMatcher
@Stability(Stable) public static final class ComputeRegionUrlMapPathMatcher.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcher>
A builder forComputeRegionUrlMapPathMatcher
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeRegionUrlMapPathMatcher.Builder name(String name)
Sets the value ofComputeRegionUrlMapPathMatcher.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_region_url_map#name ComputeRegionUrlMap#name}- Returns:
this
-
defaultService
@Stability(Stable) public ComputeRegionUrlMapPathMatcher.Builder defaultService(String defaultService)
Sets the value ofComputeRegionUrlMapPathMatcher.getDefaultService()- Parameters:
defaultService- A reference to a RegionBackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#default_service ComputeRegionUrlMap#default_service}- Returns:
this
-
defaultUrlRedirect
@Stability(Stable) public ComputeRegionUrlMapPathMatcher.Builder defaultUrlRedirect(ComputeRegionUrlMapPathMatcherDefaultUrlRedirect defaultUrlRedirect)
Sets the value ofComputeRegionUrlMapPathMatcher.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_region_url_map#default_url_redirect ComputeRegionUrlMap#default_url_redirect}- Returns:
this
-
description
@Stability(Stable) public ComputeRegionUrlMapPathMatcher.Builder description(String description)
Sets the value ofComputeRegionUrlMapPathMatcher.getDescription()- Parameters:
description- An optional description of this resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#description ComputeRegionUrlMap#description}- Returns:
this
-
pathRule
@Stability(Stable) public ComputeRegionUrlMapPathMatcher.Builder pathRule(com.hashicorp.cdktf.IResolvable pathRule)
Sets the value ofComputeRegionUrlMapPathMatcher.getPathRule()- Parameters:
pathRule- path_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#path_rule ComputeRegionUrlMap#path_rule}- Returns:
this
-
pathRule
@Stability(Stable) public ComputeRegionUrlMapPathMatcher.Builder pathRule(List<? extends ComputeRegionUrlMapPathMatcherPathRule> pathRule)
Sets the value ofComputeRegionUrlMapPathMatcher.getPathRule()- Parameters:
pathRule- path_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#path_rule ComputeRegionUrlMap#path_rule}- Returns:
this
-
routeRules
@Stability(Stable) public ComputeRegionUrlMapPathMatcher.Builder routeRules(com.hashicorp.cdktf.IResolvable routeRules)
Sets the value ofComputeRegionUrlMapPathMatcher.getRouteRules()- Parameters:
routeRules- route_rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#route_rules ComputeRegionUrlMap#route_rules}- Returns:
this
-
routeRules
@Stability(Stable) public ComputeRegionUrlMapPathMatcher.Builder routeRules(List<? extends ComputeRegionUrlMapPathMatcherRouteRules> routeRules)
Sets the value ofComputeRegionUrlMapPathMatcher.getRouteRules()- Parameters:
routeRules- route_rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#route_rules ComputeRegionUrlMap#route_rules}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionUrlMapPathMatcher build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcher>- Returns:
- a new instance of
ComputeRegionUrlMapPathMatcher - Throws:
NullPointerException- if any required attribute was not provided
-
-