Class ComputeInterconnectConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_interconnect.ComputeInterconnectConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInterconnectConfig>
- Enclosing interface:
- ComputeInterconnectConfig
@Stability(Stable) public static final class ComputeInterconnectConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeInterconnectConfig>
A builder forComputeInterconnectConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
customerName
@Stability(Stable) public ComputeInterconnectConfig.Builder customerName(String customerName)
Sets the value ofComputeInterconnectConfig.getCustomerName()- Parameters:
customerName- Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#customer_name ComputeInterconnect#customer_name}- Returns:
this
-
interconnectType
@Stability(Stable) public ComputeInterconnectConfig.Builder interconnectType(String interconnectType)
Sets the value ofComputeInterconnectConfig.getInterconnectType()- Parameters:
interconnectType- Type of interconnect. This parameter is required. 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}- Returns:
this
-
linkType
@Stability(Stable) public ComputeInterconnectConfig.Builder linkType(String linkType)
Sets the value ofComputeInterconnectConfig.getLinkType()- Parameters:
linkType- Type of link requested. This parameter is required. 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}- Returns:
this
-
location
@Stability(Stable) public ComputeInterconnectConfig.Builder location(String location)
Sets the value ofComputeInterconnectConfig.getLocation()- Parameters:
location- URL of the InterconnectLocation object that represents where this connection is to be provisioned. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#location ComputeInterconnect#location}- Returns:
this
-
name
@Stability(Stable) public ComputeInterconnectConfig.Builder name(String name)
Sets the value ofComputeInterconnectConfig.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_interconnect#name ComputeInterconnect#name}- Returns:
this
-
requestedLinkCount
@Stability(Stable) public ComputeInterconnectConfig.Builder requestedLinkCount(Number requestedLinkCount)
Sets the value ofComputeInterconnectConfig.getRequestedLinkCount()- Parameters:
requestedLinkCount- Target number of physical links in the link bundle, as requested by the customer. This parameter is required. 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}- Returns:
this
-
adminEnabled
@Stability(Stable) public ComputeInterconnectConfig.Builder adminEnabled(Boolean adminEnabled)
Sets the value ofComputeInterconnectConfig.getAdminEnabled()- Parameters:
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}- Returns:
this
-
adminEnabled
@Stability(Stable) public ComputeInterconnectConfig.Builder adminEnabled(com.hashicorp.cdktf.IResolvable adminEnabled)
Sets the value ofComputeInterconnectConfig.getAdminEnabled()- Parameters:
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}- Returns:
this
-
description
@Stability(Stable) public ComputeInterconnectConfig.Builder description(String description)
Sets the value ofComputeInterconnectConfig.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_interconnect#description ComputeInterconnect#description}- Returns:
this
-
id
@Stability(Stable) public ComputeInterconnectConfig.Builder id(String id)
Sets the value ofComputeInterconnectConfig.getId()- Parameters:
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.- Returns:
this
-
labels
@Stability(Stable) public ComputeInterconnectConfig.Builder labels(Map<String,String> labels)
Sets the value ofComputeInterconnectConfig.getLabels()- Parameters:
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}- Returns:
this
-
macsec
@Stability(Stable) public ComputeInterconnectConfig.Builder macsec(ComputeInterconnectMacsec macsec)
Sets the value ofComputeInterconnectConfig.getMacsec()- Parameters:
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}- Returns:
this
-
macsecEnabled
@Stability(Stable) public ComputeInterconnectConfig.Builder macsecEnabled(Boolean macsecEnabled)
Sets the value ofComputeInterconnectConfig.getMacsecEnabled()- Parameters:
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}- Returns:
this
-
macsecEnabled
@Stability(Stable) public ComputeInterconnectConfig.Builder macsecEnabled(com.hashicorp.cdktf.IResolvable macsecEnabled)
Sets the value ofComputeInterconnectConfig.getMacsecEnabled()- Parameters:
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}- Returns:
this
-
nocContactEmail
@Stability(Stable) public ComputeInterconnectConfig.Builder nocContactEmail(String nocContactEmail)
Sets the value ofComputeInterconnectConfig.getNocContactEmail()- Parameters:
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}- Returns:
this
-
project
@Stability(Stable) public ComputeInterconnectConfig.Builder project(String project)
Sets the value ofComputeInterconnectConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#project ComputeInterconnect#project}.- Returns:
this
-
remoteLocation
@Stability(Stable) public ComputeInterconnectConfig.Builder remoteLocation(String remoteLocation)
Sets the value ofComputeInterconnectConfig.getRemoteLocation()- Parameters:
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}- Returns:
this
-
requestedFeatures
@Stability(Stable) public ComputeInterconnectConfig.Builder requestedFeatures(List<String> requestedFeatures)
Sets the value ofComputeInterconnectConfig.getRequestedFeatures()- 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"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect#requested_features ComputeInterconnect#requested_features}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeInterconnectConfig.Builder timeouts(ComputeInterconnectTimeouts timeouts)
Sets the value ofComputeInterconnectConfig.getTimeouts()- Parameters:
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}- Returns:
this
-
connection
@Stability(Experimental) public ComputeInterconnectConfig.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 ComputeInterconnectConfig.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 ComputeInterconnectConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeInterconnectConfig.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 ComputeInterconnectConfig.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 ComputeInterconnectConfig.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 ComputeInterconnectConfig.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 ComputeInterconnectConfig.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 ComputeInterconnectConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeInterconnectConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInterconnectConfig>- Returns:
- a new instance of
ComputeInterconnectConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-