Class ComputeUrlMapHostRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_url_map.ComputeUrlMapHostRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeUrlMapHostRule>
- Enclosing interface:
- ComputeUrlMapHostRule
@Stability(Stable) public static final class ComputeUrlMapHostRule.Builder extends Object implements software.amazon.jsii.Builder<ComputeUrlMapHostRule>
A builder forComputeUrlMapHostRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeUrlMapHostRulebuild()Builds the configured instance.ComputeUrlMapHostRule.Builderdescription(String description)Sets the value ofComputeUrlMapHostRule.getDescription()ComputeUrlMapHostRule.Builderhosts(List<String> hosts)Sets the value ofComputeUrlMapHostRule.getHosts()ComputeUrlMapHostRule.BuilderpathMatcher(String pathMatcher)Sets the value ofComputeUrlMapHostRule.getPathMatcher()
-
-
-
Method Detail
-
hosts
@Stability(Stable) public ComputeUrlMapHostRule.Builder hosts(List<String> hosts)
Sets the value ofComputeUrlMapHostRule.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_url_map#hosts ComputeUrlMap#hosts}- Returns:
this
-
pathMatcher
@Stability(Stable) public ComputeUrlMapHostRule.Builder pathMatcher(String pathMatcher)
Sets the value ofComputeUrlMapHostRule.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_url_map#path_matcher ComputeUrlMap#path_matcher}- Returns:
this
-
description
@Stability(Stable) public ComputeUrlMapHostRule.Builder description(String description)
Sets the value ofComputeUrlMapHostRule.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
-
build
@Stability(Stable) public ComputeUrlMapHostRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeUrlMapHostRule>- Returns:
- a new instance of
ComputeUrlMapHostRule - Throws:
NullPointerException- if any required attribute was not provided
-
-