Class ComputeRouter.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_router.ComputeRouter.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRouter>
- Enclosing class:
- ComputeRouter
@Stability(Stable) public static final class ComputeRouter.Builder extends Object implements software.amazon.jsii.Builder<ComputeRouter>
A fluent builder forComputeRouter.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRouter.Builderbgp(ComputeRouterBgp bgp)bgp block.ComputeRouterbuild()ComputeRouter.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComputeRouter.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComputeRouter.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComputeRouter.Buildercount(Number count)static ComputeRouter.Buildercreate(software.constructs.Construct scope, String id)ComputeRouter.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComputeRouter.Builderdescription(String description)An optional description of this resource.ComputeRouter.BuilderencryptedInterconnectRouter(com.hashicorp.cdktf.IResolvable encryptedInterconnectRouter)Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).ComputeRouter.BuilderencryptedInterconnectRouter(Boolean encryptedInterconnectRouter)Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).ComputeRouter.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComputeRouter.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#id ComputeRouter#id}.ComputeRouter.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComputeRouter.Buildername(String name)Name of the resource.ComputeRouter.Buildernetwork(String network)A reference to the network to which this router belongs.ComputeRouter.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#project ComputeRouter#project}.ComputeRouter.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComputeRouter.Builderprovisioners(List<? extends Object> provisioners)ComputeRouter.Builderregion(String region)Region where the router resides.ComputeRouter.Buildertimeouts(ComputeRouterTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComputeRouter.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
ComputeRouter.Builder.
-
connection
@Stability(Experimental) public ComputeRouter.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComputeRouter.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeRouter.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeRouter.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeRouter.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeRouter.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeRouter.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComputeRouter.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeRouter.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ComputeRouter.Builder name(String name)
Name of the resource.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_router#name ComputeRouter#name}
- Parameters:
name- Name of the resource. This parameter is required.- Returns:
this
-
network
@Stability(Stable) public ComputeRouter.Builder network(String network)
A reference to the network to which this router belongs.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#network ComputeRouter#network}
- Parameters:
network- A reference to the network to which this router belongs. This parameter is required.- Returns:
this
-
bgp
@Stability(Stable) public ComputeRouter.Builder bgp(ComputeRouterBgp bgp)
bgp block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#bgp ComputeRouter#bgp}
- Parameters:
bgp- bgp block. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public ComputeRouter.Builder description(String 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_router#description ComputeRouter#description}
- Parameters:
description- An optional description of this resource. This parameter is required.- Returns:
this
-
encryptedInterconnectRouter
@Stability(Stable) public ComputeRouter.Builder encryptedInterconnectRouter(Boolean encryptedInterconnectRouter)
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#encrypted_interconnect_router ComputeRouter#encrypted_interconnect_router}
- Parameters:
encryptedInterconnectRouter- Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments). This parameter is required.- Returns:
this
-
encryptedInterconnectRouter
@Stability(Stable) public ComputeRouter.Builder encryptedInterconnectRouter(com.hashicorp.cdktf.IResolvable encryptedInterconnectRouter)
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#encrypted_interconnect_router ComputeRouter#encrypted_interconnect_router}
- Parameters:
encryptedInterconnectRouter- Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments). This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComputeRouter.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#id ComputeRouter#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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#id ComputeRouter#id}. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ComputeRouter.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#project ComputeRouter#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#project ComputeRouter#project}. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public ComputeRouter.Builder region(String region)
Region where the router resides.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#region ComputeRouter#region}
- Parameters:
region- Region where the router resides. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeRouter.Builder timeouts(ComputeRouterTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router#timeouts ComputeRouter#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeRouter build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRouter>- Returns:
- a newly built instance of
ComputeRouter.
-
-