Class ComputeRegionUrlMapConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapConfig>
- Enclosing interface:
- ComputeRegionUrlMapConfig
@Stability(Stable) public static final class ComputeRegionUrlMapConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapConfig>
A builder forComputeRegionUrlMapConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder name(String name)
Sets the value ofComputeRegionUrlMapConfig.getName()- Parameters:
name- Name of the resource. This parameter is required. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression '[a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 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
-
defaultRouteAction
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder defaultRouteAction(ComputeRegionUrlMapDefaultRouteAction defaultRouteAction)
Sets the value ofComputeRegionUrlMapConfig.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_region_url_map#default_route_action ComputeRegionUrlMap#default_route_action}- Returns:
this
-
defaultService
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder defaultService(String defaultService)
Sets the value ofComputeRegionUrlMapConfig.getDefaultService()- Parameters:
defaultService- The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set. 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 ComputeRegionUrlMapConfig.Builder defaultUrlRedirect(ComputeRegionUrlMapDefaultUrlRedirect defaultUrlRedirect)
Sets the value ofComputeRegionUrlMapConfig.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 ComputeRegionUrlMapConfig.Builder description(String description)
Sets the value ofComputeRegionUrlMapConfig.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_region_url_map#description ComputeRegionUrlMap#description}- Returns:
this
-
hostRule
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder hostRule(com.hashicorp.cdktf.IResolvable hostRule)
Sets the value ofComputeRegionUrlMapConfig.getHostRule()- Parameters:
hostRule- host_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#host_rule ComputeRegionUrlMap#host_rule}- Returns:
this
-
hostRule
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder hostRule(List<? extends ComputeRegionUrlMapHostRule> hostRule)
Sets the value ofComputeRegionUrlMapConfig.getHostRule()- Parameters:
hostRule- host_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#host_rule ComputeRegionUrlMap#host_rule}- Returns:
this
-
id
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder id(String id)
Sets the value ofComputeRegionUrlMapConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#id ComputeRegionUrlMap#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
pathMatcher
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder pathMatcher(com.hashicorp.cdktf.IResolvable pathMatcher)
Sets the value ofComputeRegionUrlMapConfig.getPathMatcher()- Parameters:
pathMatcher- path_matcher block. 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
-
pathMatcher
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder pathMatcher(List<? extends ComputeRegionUrlMapPathMatcher> pathMatcher)
Sets the value ofComputeRegionUrlMapConfig.getPathMatcher()- Parameters:
pathMatcher- path_matcher block. 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
-
project
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder project(String project)
Sets the value ofComputeRegionUrlMapConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#project ComputeRegionUrlMap#project}.- Returns:
this
-
region
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder region(String region)
Sets the value ofComputeRegionUrlMapConfig.getRegion()- Parameters:
region- The Region in which the url map should reside. If it is not provided, the provider region is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#region ComputeRegionUrlMap#region}- Returns:
this
-
test
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder test(com.hashicorp.cdktf.IResolvable test)
Sets the value ofComputeRegionUrlMapConfig.getTest()- Parameters:
test- test block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#test ComputeRegionUrlMap#test}- Returns:
this
-
test
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder test(List<? extends ComputeRegionUrlMapTest> test)
Sets the value ofComputeRegionUrlMapConfig.getTest()- Parameters:
test- test block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#test ComputeRegionUrlMap#test}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeRegionUrlMapConfig.Builder timeouts(ComputeRegionUrlMapTimeouts timeouts)
Sets the value ofComputeRegionUrlMapConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#timeouts ComputeRegionUrlMap#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeRegionUrlMapConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeRegionUrlMapConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapConfig>- Returns:
- a new instance of
ComputeRegionUrlMapConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-