Class ComputeRegionUrlMapHostRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapHostRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapHostRule>
- Enclosing interface:
- ComputeRegionUrlMapHostRule
@Stability(Stable) public static final class ComputeRegionUrlMapHostRule.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapHostRule>
A builder forComputeRegionUrlMapHostRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionUrlMapHostRulebuild()Builds the configured instance.ComputeRegionUrlMapHostRule.Builderdescription(String description)Sets the value ofComputeRegionUrlMapHostRule.getDescription()ComputeRegionUrlMapHostRule.Builderhosts(List<String> hosts)Sets the value ofComputeRegionUrlMapHostRule.getHosts()ComputeRegionUrlMapHostRule.BuilderpathMatcher(String pathMatcher)Sets the value ofComputeRegionUrlMapHostRule.getPathMatcher()
-
-
-
Method Detail
-
hosts
@Stability(Stable) public ComputeRegionUrlMapHostRule.Builder hosts(List<String> hosts)
Sets the value ofComputeRegionUrlMapHostRule.getHosts()- Parameters:
hosts- The list of host patterns to match. This parameter is required. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#hosts ComputeRegionUrlMap#hosts}- Returns:
this
-
pathMatcher
@Stability(Stable) public ComputeRegionUrlMapHostRule.Builder pathMatcher(String pathMatcher)
Sets the value ofComputeRegionUrlMapHostRule.getPathMatcher()- Parameters:
pathMatcher- The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 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#path_matcher ComputeRegionUrlMap#path_matcher}- Returns:
this
-
description
@Stability(Stable) public ComputeRegionUrlMapHostRule.Builder description(String description)
Sets the value ofComputeRegionUrlMapHostRule.getDescription()- Parameters:
description- An optional description of this HostRule. 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_region_url_map#description ComputeRegionUrlMap#description}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionUrlMapHostRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapHostRule>- Returns:
- a new instance of
ComputeRegionUrlMapHostRule - Throws:
NullPointerException- if any required attribute was not provided
-
-