Class ComputeInterconnect.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_interconnect.ComputeInterconnect.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInterconnect>
- Enclosing class:
- ComputeInterconnect
@Stability(Stable) public static final class ComputeInterconnect.Builder extends Object implements software.amazon.jsii.Builder<ComputeInterconnect>
A fluent builder forComputeInterconnect.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInterconnect.BuilderadminEnabled(com.hashicorp.cdktf.IResolvable adminEnabled)Administrative status of the interconnect.ComputeInterconnect.BuilderadminEnabled(Boolean adminEnabled)Administrative status of the interconnect.ComputeInterconnectbuild()ComputeInterconnect.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComputeInterconnect.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComputeInterconnect.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComputeInterconnect.Buildercount(Number count)static ComputeInterconnect.Buildercreate(software.constructs.Construct scope, String id)ComputeInterconnect.BuildercustomerName(String customerName)Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect.ComputeInterconnect.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComputeInterconnect.Builderdescription(String description)An optional description of this resource.ComputeInterconnect.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComputeInterconnect.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#id ComputeInterconnect#id}.ComputeInterconnect.BuilderinterconnectType(String interconnectType)Type of interconnect.ComputeInterconnect.Builderlabels(Map<String,String> labels)Labels for this resource.ComputeInterconnect.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComputeInterconnect.BuilderlinkType(String linkType)Type of link requested.ComputeInterconnect.Builderlocation(String location)URL of the InterconnectLocation object that represents where this connection is to be provisioned.ComputeInterconnect.Buildermacsec(ComputeInterconnectMacsec macsec)macsec block.ComputeInterconnect.BuildermacsecEnabled(com.hashicorp.cdktf.IResolvable macsecEnabled)Enable or disable MACsec on this Interconnect connection.ComputeInterconnect.BuildermacsecEnabled(Boolean macsecEnabled)Enable or disable MACsec on this Interconnect connection.ComputeInterconnect.Buildername(String name)Name of the resource.ComputeInterconnect.BuildernocContactEmail(String nocContactEmail)Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect.ComputeInterconnect.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#project ComputeInterconnect#project}.ComputeInterconnect.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComputeInterconnect.Builderprovisioners(List<? extends Object> provisioners)ComputeInterconnect.BuilderremoteLocation(String remoteLocation)Indicates that this is a Cross-Cloud Interconnect.ComputeInterconnect.BuilderrequestedFeatures(List<String> requestedFeatures)interconnects.list of features requested for this Interconnect connection.ComputeInterconnect.BuilderrequestedLinkCount(Number requestedLinkCount)Target number of physical links in the link bundle, as requested by the customer.ComputeInterconnect.Buildertimeouts(ComputeInterconnectTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComputeInterconnect.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
ComputeInterconnect.Builder.
-
connection
@Stability(Experimental) public ComputeInterconnect.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComputeInterconnect.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeInterconnect.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeInterconnect.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeInterconnect.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeInterconnect.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeInterconnect.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComputeInterconnect.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeInterconnect.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
customerName
@Stability(Stable) public ComputeInterconnect.Builder customerName(String customerName)
Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#customer_name ComputeInterconnect#customer_name}
- Parameters:
customerName- Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. This parameter is required.- Returns:
this
-
interconnectType
@Stability(Stable) public ComputeInterconnect.Builder interconnectType(String interconnectType)
Type of interconnect.Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. Can take one of the following values: * PARTNER: A partner-managed interconnection shared between customers though a partner. * DEDICATED: A dedicated physical interconnection with the customer. Possible values: ["DEDICATED", "PARTNER", "IT_PRIVATE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#interconnect_type ComputeInterconnect#interconnect_type}
- Parameters:
interconnectType- Type of interconnect. This parameter is required.- Returns:
this
-
linkType
@Stability(Stable) public ComputeInterconnect.Builder linkType(String linkType)
Type of link requested.Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. Can take one of the following values: * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics. * LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Possible values: ["LINK_TYPE_ETHERNET_10G_LR", "LINK_TYPE_ETHERNET_100G_LR"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#link_type ComputeInterconnect#link_type}
- Parameters:
linkType- Type of link requested. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public ComputeInterconnect.Builder location(String location)
URL of the InterconnectLocation object that represents where this connection is to be provisioned.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#location ComputeInterconnect#location}
- Parameters:
location- URL of the InterconnectLocation object that represents where this connection is to be provisioned. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ComputeInterconnect.Builder name(String name)
Name of the resource.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_interconnect#name ComputeInterconnect#name}
- Parameters:
name- Name of the resource. This parameter is required.- Returns:
this
-
requestedLinkCount
@Stability(Stable) public ComputeInterconnect.Builder requestedLinkCount(Number requestedLinkCount)
Target number of physical links in the link bundle, as requested by the customer.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#requested_link_count ComputeInterconnect#requested_link_count}
- Parameters:
requestedLinkCount- Target number of physical links in the link bundle, as requested by the customer. This parameter is required.- Returns:
this
-
adminEnabled
@Stability(Stable) public ComputeInterconnect.Builder adminEnabled(Boolean adminEnabled)
Administrative status of the interconnect.When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#admin_enabled ComputeInterconnect#admin_enabled}
- Parameters:
adminEnabled- Administrative status of the interconnect. This parameter is required.- Returns:
this
-
adminEnabled
@Stability(Stable) public ComputeInterconnect.Builder adminEnabled(com.hashicorp.cdktf.IResolvable adminEnabled)
Administrative status of the interconnect.When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#admin_enabled ComputeInterconnect#admin_enabled}
- Parameters:
adminEnabled- Administrative status of the interconnect. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public ComputeInterconnect.Builder description(String 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_interconnect#description ComputeInterconnect#description}
- Parameters:
description- An optional description of this resource. Provide this property when you create the resource. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComputeInterconnect.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#id ComputeInterconnect#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_interconnect#id ComputeInterconnect#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public ComputeInterconnect.Builder labels(Map<String,String> labels)
Labels for this resource.These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#labels ComputeInterconnect#labels}
- Parameters:
labels- Labels for this resource. This parameter is required.- Returns:
this
-
macsec
@Stability(Stable) public ComputeInterconnect.Builder macsec(ComputeInterconnectMacsec macsec)
macsec block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#macsec ComputeInterconnect#macsec}
- Parameters:
macsec- macsec block. This parameter is required.- Returns:
this
-
macsecEnabled
@Stability(Stable) public ComputeInterconnect.Builder macsecEnabled(Boolean macsecEnabled)
Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#macsec_enabled ComputeInterconnect#macsec_enabled}
- Parameters:
macsecEnabled- Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified. This parameter is required.- Returns:
this
-
macsecEnabled
@Stability(Stable) public ComputeInterconnect.Builder macsecEnabled(com.hashicorp.cdktf.IResolvable macsecEnabled)
Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#macsec_enabled ComputeInterconnect#macsec_enabled}
- Parameters:
macsecEnabled- Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified. This parameter is required.- Returns:
this
-
nocContactEmail
@Stability(Stable) public ComputeInterconnect.Builder nocContactEmail(String nocContactEmail)
Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect.If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#noc_contact_email ComputeInterconnect#noc_contact_email}
- Parameters:
nocContactEmail- Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ComputeInterconnect.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#project ComputeInterconnect#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#project ComputeInterconnect#project}. This parameter is required.- Returns:
this
-
remoteLocation
@Stability(Stable) public ComputeInterconnect.Builder remoteLocation(String remoteLocation)
Indicates that this is a Cross-Cloud Interconnect.This field specifies the location outside of Google's network that the interconnect is connected to. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#remote_location ComputeInterconnect#remote_location}
- Parameters:
remoteLocation- Indicates that this is a Cross-Cloud Interconnect. This parameter is required.- Returns:
this
-
requestedFeatures
@Stability(Stable) public ComputeInterconnect.Builder requestedFeatures(List<String> requestedFeatures)
interconnects.list of features requested for this Interconnect connection. Options: MACSEC ( If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available). Possible values: ["MACSEC"].Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#requested_features ComputeInterconnect#requested_features}
- Parameters:
requestedFeatures- interconnects.list of features requested for this Interconnect connection. Options: MACSEC ( If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available). Possible values: ["MACSEC"]. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeInterconnect.Builder timeouts(ComputeInterconnectTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#timeouts ComputeInterconnect#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeInterconnect build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInterconnect>- Returns:
- a newly built instance of
ComputeInterconnect.
-
-