Class EdgenetworkSubnetConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.edgenetwork_subnet.EdgenetworkSubnetConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EdgenetworkSubnetConfig>
- Enclosing interface:
- EdgenetworkSubnetConfig
@Stability(Stable) public static final class EdgenetworkSubnetConfig.Builder extends Object implements software.amazon.jsii.Builder<EdgenetworkSubnetConfig>
A builder forEdgenetworkSubnetConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
location
@Stability(Stable) public EdgenetworkSubnetConfig.Builder location(String location)
Sets the value ofEdgenetworkSubnetConfig.getLocation()- Parameters:
location- The Google Cloud region to which the target Distributed Cloud Edge zone belongs. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#location EdgenetworkSubnet#location}- Returns:
this
-
network
@Stability(Stable) public EdgenetworkSubnetConfig.Builder network(String network)
Sets the value ofEdgenetworkSubnetConfig.getNetwork()- Parameters:
network- The ID of the network to which this router belongs. Must be of the form: 'projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#network EdgenetworkSubnet#network}- Returns:
this
-
subnetId
@Stability(Stable) public EdgenetworkSubnetConfig.Builder subnetId(String subnetId)
Sets the value ofEdgenetworkSubnetConfig.getSubnetId()- Parameters:
subnetId- A unique ID that identifies this subnet. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#subnet_id EdgenetworkSubnet#subnet_id}- Returns:
this
-
zone
@Stability(Stable) public EdgenetworkSubnetConfig.Builder zone(String zone)
Sets the value ofEdgenetworkSubnetConfig.getZone()- Parameters:
zone- The name of the target Distributed Cloud Edge zone. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#zone EdgenetworkSubnet#zone}- Returns:
this
-
description
@Stability(Stable) public EdgenetworkSubnetConfig.Builder description(String description)
Sets the value ofEdgenetworkSubnetConfig.getDescription()- Parameters:
description- A free-text description of the resource. Max length 1024 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#description EdgenetworkSubnet#description}- Returns:
this
-
id
@Stability(Stable) public EdgenetworkSubnetConfig.Builder id(String id)
Sets the value ofEdgenetworkSubnetConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#id EdgenetworkSubnet#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
-
ipv4Cidr
@Stability(Stable) public EdgenetworkSubnetConfig.Builder ipv4Cidr(List<String> ipv4Cidr)
Sets the value ofEdgenetworkSubnetConfig.getIpv4Cidr()- Parameters:
ipv4Cidr- The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#ipv4_cidr EdgenetworkSubnet#ipv4_cidr}- Returns:
this
-
ipv6Cidr
@Stability(Stable) public EdgenetworkSubnetConfig.Builder ipv6Cidr(List<String> ipv6Cidr)
Sets the value ofEdgenetworkSubnetConfig.getIpv6Cidr()- Parameters:
ipv6Cidr- The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#ipv6_cidr EdgenetworkSubnet#ipv6_cidr}- Returns:
this
-
labels
@Stability(Stable) public EdgenetworkSubnetConfig.Builder labels(Map<String,String> labels)
Sets the value ofEdgenetworkSubnetConfig.getLabels()- Parameters:
labels- Labels associated with this resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#labels EdgenetworkSubnet#labels}- Returns:
this
-
project
@Stability(Stable) public EdgenetworkSubnetConfig.Builder project(String project)
Sets the value ofEdgenetworkSubnetConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#project EdgenetworkSubnet#project}.- Returns:
this
-
timeouts
@Stability(Stable) public EdgenetworkSubnetConfig.Builder timeouts(EdgenetworkSubnetTimeouts timeouts)
Sets the value ofEdgenetworkSubnetConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#timeouts EdgenetworkSubnet#timeouts}- Returns:
this
-
vlanId
@Stability(Stable) public EdgenetworkSubnetConfig.Builder vlanId(Number vlanId)
Sets the value ofEdgenetworkSubnetConfig.getVlanId()- Parameters:
vlanId- VLAN ID for this subnetwork. If not specified, one is assigned automatically. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/edgenetwork_subnet#vlan_id EdgenetworkSubnet#vlan_id}- Returns:
this
-
connection
@Stability(Experimental) public EdgenetworkSubnetConfig.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 EdgenetworkSubnetConfig.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 EdgenetworkSubnetConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public EdgenetworkSubnetConfig.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 EdgenetworkSubnetConfig.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 EdgenetworkSubnetConfig.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 EdgenetworkSubnetConfig.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 EdgenetworkSubnetConfig.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 EdgenetworkSubnetConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public EdgenetworkSubnetConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EdgenetworkSubnetConfig>- Returns:
- a new instance of
EdgenetworkSubnetConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-