Class ComputeRouteConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_route.ComputeRouteConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRouteConfig>
- Enclosing interface:
- ComputeRouteConfig
@Stability(Stable) public static final class ComputeRouteConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeRouteConfig>
A builder forComputeRouteConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRouteConfigbuild()Builds the configured instance.ComputeRouteConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComputeRouteConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComputeRouteConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()ComputeRouteConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()ComputeRouteConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()ComputeRouteConfig.Builderdescription(String description)Sets the value ofComputeRouteConfig.getDescription()ComputeRouteConfig.BuilderdestRange(String destRange)Sets the value ofComputeRouteConfig.getDestRange()ComputeRouteConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()ComputeRouteConfig.Builderid(String id)Sets the value ofComputeRouteConfig.getId()ComputeRouteConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()ComputeRouteConfig.Buildername(String name)Sets the value ofComputeRouteConfig.getName()ComputeRouteConfig.Buildernetwork(String network)Sets the value ofComputeRouteConfig.getNetwork()ComputeRouteConfig.BuildernextHopGateway(String nextHopGateway)Sets the value ofComputeRouteConfig.getNextHopGateway()ComputeRouteConfig.BuildernextHopIlb(String nextHopIlb)Sets the value ofComputeRouteConfig.getNextHopIlb()ComputeRouteConfig.BuildernextHopInstance(String nextHopInstance)Sets the value ofComputeRouteConfig.getNextHopInstance()ComputeRouteConfig.BuildernextHopInstanceZone(String nextHopInstanceZone)Sets the value ofComputeRouteConfig.getNextHopInstanceZone()ComputeRouteConfig.BuildernextHopIp(String nextHopIp)Sets the value ofComputeRouteConfig.getNextHopIp()ComputeRouteConfig.BuildernextHopVpnTunnel(String nextHopVpnTunnel)Sets the value ofComputeRouteConfig.getNextHopVpnTunnel()ComputeRouteConfig.Builderpriority(Number priority)Sets the value ofComputeRouteConfig.getPriority()ComputeRouteConfig.Builderproject(String project)Sets the value ofComputeRouteConfig.getProject()ComputeRouteConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()ComputeRouteConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()ComputeRouteConfig.Buildertags(List<String> tags)Sets the value ofComputeRouteConfig.getTags()ComputeRouteConfig.Buildertimeouts(ComputeRouteTimeouts timeouts)Sets the value ofComputeRouteConfig.getTimeouts()
-
-
-
Method Detail
-
destRange
@Stability(Stable) public ComputeRouteConfig.Builder destRange(String destRange)
Sets the value ofComputeRouteConfig.getDestRange()- Parameters:
destRange- The destination range of outgoing packets that this route applies to. Only IPv4 is supported. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#dest_range ComputeRoute#dest_range}- Returns:
this
-
name
@Stability(Stable) public ComputeRouteConfig.Builder name(String name)
Sets the value ofComputeRouteConfig.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_route#name ComputeRoute#name}- Returns:
this
-
network
@Stability(Stable) public ComputeRouteConfig.Builder network(String network)
Sets the value ofComputeRouteConfig.getNetwork()- Parameters:
network- The network that this route applies to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#network ComputeRoute#network}- Returns:
this
-
description
@Stability(Stable) public ComputeRouteConfig.Builder description(String description)
Sets the value ofComputeRouteConfig.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_route#description ComputeRoute#description}- Returns:
this
-
id
@Stability(Stable) public ComputeRouteConfig.Builder id(String id)
Sets the value ofComputeRouteConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#id ComputeRoute#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
-
nextHopGateway
@Stability(Stable) public ComputeRouteConfig.Builder nextHopGateway(String nextHopGateway)
Sets the value ofComputeRouteConfig.getNextHopGateway()- Parameters:
nextHopGateway- URL to a gateway that should handle matching packets. Currently, you can only specify the internet gateway, using a full or partial valid URL: * 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway' * 'projects/project/global/gateways/default-internet-gateway' * 'global/gateways/default-internet-gateway' * The string 'default-internet-gateway'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_gateway ComputeRoute#next_hop_gateway}- Returns:
this
-
nextHopIlb
@Stability(Stable) public ComputeRouteConfig.Builder nextHopIlb(String nextHopIlb)
Sets the value ofComputeRouteConfig.getNextHopIlb()- Parameters:
nextHopIlb- The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values: * 10.128.0.56 * https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule * regions/region/forwardingRules/forwardingRule When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC. Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_ilb ComputeRoute#next_hop_ilb}- Returns:
this
-
nextHopInstance
@Stability(Stable) public ComputeRouteConfig.Builder nextHopInstance(String nextHopInstance)
Sets the value ofComputeRouteConfig.getNextHopInstance()- Parameters:
nextHopInstance- URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: * 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance' * 'projects/project/zones/zone/instances/instance' * 'zones/zone/instances/instance' * Just the instance name, with the zone in 'next_hop_instance_zone'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_instance ComputeRoute#next_hop_instance}- Returns:
this
-
nextHopInstanceZone
@Stability(Stable) public ComputeRouteConfig.Builder nextHopInstanceZone(String nextHopInstanceZone)
Sets the value ofComputeRouteConfig.getNextHopInstanceZone()- Parameters:
nextHopInstanceZone- The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_instance_zone ComputeRoute#next_hop_instance_zone}- Returns:
this
-
nextHopIp
@Stability(Stable) public ComputeRouteConfig.Builder nextHopIp(String nextHopIp)
Sets the value ofComputeRouteConfig.getNextHopIp()- Parameters:
nextHopIp- Network IP address of an instance that should handle matching packets. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_ip ComputeRoute#next_hop_ip}- Returns:
this
-
nextHopVpnTunnel
@Stability(Stable) public ComputeRouteConfig.Builder nextHopVpnTunnel(String nextHopVpnTunnel)
Sets the value ofComputeRouteConfig.getNextHopVpnTunnel()- Parameters:
nextHopVpnTunnel- URL to a VpnTunnel that should handle matching packets. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_vpn_tunnel ComputeRoute#next_hop_vpn_tunnel}- Returns:
this
-
priority
@Stability(Stable) public ComputeRouteConfig.Builder priority(Number priority)
Sets the value ofComputeRouteConfig.getPriority()- Parameters:
priority- The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#priority ComputeRoute#priority}- Returns:
this
-
project
@Stability(Stable) public ComputeRouteConfig.Builder project(String project)
Sets the value ofComputeRouteConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#project ComputeRoute#project}.- Returns:
this
-
tags
@Stability(Stable) public ComputeRouteConfig.Builder tags(List<String> tags)
Sets the value ofComputeRouteConfig.getTags()- Parameters:
tags- A list of instance tags to which this route applies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#tags ComputeRoute#tags}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeRouteConfig.Builder timeouts(ComputeRouteTimeouts timeouts)
Sets the value ofComputeRouteConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#timeouts ComputeRoute#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeRouteConfig.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 ComputeRouteConfig.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 ComputeRouteConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeRouteConfig.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 ComputeRouteConfig.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 ComputeRouteConfig.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 ComputeRouteConfig.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 ComputeRouteConfig.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 ComputeRouteConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeRouteConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRouteConfig>- Returns:
- a new instance of
ComputeRouteConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-