All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.edgenetwork.kotlin.SubnetArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.edgenetwork.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.edgenetwork.SubnetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A Distributed Cloud Edge subnet, which provides L2 isolation within a network.
 * To get more information about Subnet, see:
 * * [API documentation](https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/network/rest/v1/projects.locations.zones.subnets)
 * * How-to Guides
 *     * [Create and manage subnetworks](https://cloud.google.com/distributed-cloud/edge/latest/docs/subnetworks#api)
 * ## Example Usage
 * ### Edgenetwork Subnet
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const exampleNetwork = new gcp.edgenetwork.Network("example_network", {
 *     networkId: "example-network",
 *     location: "us-west1",
 *     zone: "",
 *     description: "Example network.",
 *     mtu: 9000,
 * });
 * const exampleSubnet = new gcp.edgenetwork.Subnet("example_subnet", {
 *     subnetId: "example-subnet",
 *     location: "us-west1",
 *     zone: "",
 *     description: "Example subnet.",
 *     network: exampleNetwork.id,
 *     ipv4Cidrs: ["4.4.4.1/24"],
 *     labels: {
 *         environment: "dev",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * example_network = gcp.edgenetwork.Network("example_network",
 *     network_id="example-network",
 *     location="us-west1",
 *     zone="",
 *     description="Example network.",
 *     mtu=9000)
 * example_subnet = gcp.edgenetwork.Subnet("example_subnet",
 *     subnet_id="example-subnet",
 *     location="us-west1",
 *     zone="",
 *     description="Example subnet.",
 *     network=example_network.id,
 *     ipv4_cidrs=["4.4.4.1/24"],
 *     labels={
 *         "environment": "dev",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var exampleNetwork = new Gcp.EdgeNetwork.Network("example_network", new()
 *     {
 *         NetworkId = "example-network",
 *         Location = "us-west1",
 *         Zone = "",
 *         Description = "Example network.",
 *         Mtu = 9000,
 *     });
 *     var exampleSubnet = new Gcp.EdgeNetwork.Subnet("example_subnet", new()
 *     {
 *         SubnetId = "example-subnet",
 *         Location = "us-west1",
 *         Zone = "",
 *         Description = "Example subnet.",
 *         Network = exampleNetwork.Id,
 *         Ipv4Cidrs = new[]
 *         {
 *             "4.4.4.1/24",
 *         },
 *         Labels =
 *         {
 *             { "environment", "dev" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/edgenetwork"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		exampleNetwork, err := edgenetwork.NewNetwork(ctx, "example_network", &edgenetwork.NetworkArgs{
 * 			NetworkId:   pulumi.String("example-network"),
 * 			Location:    pulumi.String("us-west1"),
 * 			Zone:        pulumi.String(""),
 * 			Description: pulumi.String("Example network."),
 * 			Mtu:         pulumi.Int(9000),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = edgenetwork.NewSubnet(ctx, "example_subnet", &edgenetwork.SubnetArgs{
 * 			SubnetId:    pulumi.String("example-subnet"),
 * 			Location:    pulumi.String("us-west1"),
 * 			Zone:        pulumi.String(""),
 * 			Description: pulumi.String("Example subnet."),
 * 			Network:     exampleNetwork.ID(),
 * 			Ipv4Cidrs: pulumi.StringArray{
 * 				pulumi.String("4.4.4.1/24"),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"environment": pulumi.String("dev"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.edgenetwork.Network;
 * import com.pulumi.gcp.edgenetwork.NetworkArgs;
 * import com.pulumi.gcp.edgenetwork.Subnet;
 * import com.pulumi.gcp.edgenetwork.SubnetArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
 *             .networkId("example-network")
 *             .location("us-west1")
 *             .zone("")
 *             .description("Example network.")
 *             .mtu(9000)
 *             .build());
 *         var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
 *             .subnetId("example-subnet")
 *             .location("us-west1")
 *             .zone("")
 *             .description("Example subnet.")
 *             .network(exampleNetwork.id())
 *             .ipv4Cidrs("4.4.4.1/24")
 *             .labels(Map.of("environment", "dev"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   exampleSubnet:
 *     type: gcp:edgenetwork:Subnet
 *     name: example_subnet
 *     properties:
 *       subnetId: example-subnet
 *       location: us-west1
 *       zone:
 *       description: Example subnet.
 *       network: ${exampleNetwork.id}
 *       ipv4Cidrs:
 *         - 4.4.4.1/24
 *       labels:
 *         environment: dev
 *   exampleNetwork:
 *     type: gcp:edgenetwork:Network
 *     name: example_network
 *     properties:
 *       networkId: example-network
 *       location: us-west1
 *       zone:
 *       description: Example network.
 *       mtu: 9000
 * ```
 * 
 * ### Edgenetwork Subnet With Vlan Id
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const exampleNetwork = new gcp.edgenetwork.Network("example_network", {
 *     networkId: "example-network",
 *     location: "us-west1",
 *     zone: "",
 *     description: "Example network.",
 *     mtu: 9000,
 * });
 * const exampleSubnetWithVlanId = new gcp.edgenetwork.Subnet("example_subnet_with_vlan_id", {
 *     subnetId: "example-subnet-with-vlan-id",
 *     location: "us-west1",
 *     zone: "",
 *     description: "Example subnet with VLAN ID.",
 *     network: exampleNetwork.id,
 *     ipv6Cidrs: ["4444:4444:4444:4444::1/64"],
 *     vlanId: 44,
 *     labels: {
 *         environment: "dev",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * example_network = gcp.edgenetwork.Network("example_network",
 *     network_id="example-network",
 *     location="us-west1",
 *     zone="",
 *     description="Example network.",
 *     mtu=9000)
 * example_subnet_with_vlan_id = gcp.edgenetwork.Subnet("example_subnet_with_vlan_id",
 *     subnet_id="example-subnet-with-vlan-id",
 *     location="us-west1",
 *     zone="",
 *     description="Example subnet with VLAN ID.",
 *     network=example_network.id,
 *     ipv6_cidrs=["4444:4444:4444:4444::1/64"],
 *     vlan_id=44,
 *     labels={
 *         "environment": "dev",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var exampleNetwork = new Gcp.EdgeNetwork.Network("example_network", new()
 *     {
 *         NetworkId = "example-network",
 *         Location = "us-west1",
 *         Zone = "",
 *         Description = "Example network.",
 *         Mtu = 9000,
 *     });
 *     var exampleSubnetWithVlanId = new Gcp.EdgeNetwork.Subnet("example_subnet_with_vlan_id", new()
 *     {
 *         SubnetId = "example-subnet-with-vlan-id",
 *         Location = "us-west1",
 *         Zone = "",
 *         Description = "Example subnet with VLAN ID.",
 *         Network = exampleNetwork.Id,
 *         Ipv6Cidrs = new[]
 *         {
 *             "4444:4444:4444:4444::1/64",
 *         },
 *         VlanId = 44,
 *         Labels =
 *         {
 *             { "environment", "dev" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/edgenetwork"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		exampleNetwork, err := edgenetwork.NewNetwork(ctx, "example_network", &edgenetwork.NetworkArgs{
 * 			NetworkId:   pulumi.String("example-network"),
 * 			Location:    pulumi.String("us-west1"),
 * 			Zone:        pulumi.String(""),
 * 			Description: pulumi.String("Example network."),
 * 			Mtu:         pulumi.Int(9000),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = edgenetwork.NewSubnet(ctx, "example_subnet_with_vlan_id", &edgenetwork.SubnetArgs{
 * 			SubnetId:    pulumi.String("example-subnet-with-vlan-id"),
 * 			Location:    pulumi.String("us-west1"),
 * 			Zone:        pulumi.String(""),
 * 			Description: pulumi.String("Example subnet with VLAN ID."),
 * 			Network:     exampleNetwork.ID(),
 * 			Ipv6Cidrs: pulumi.StringArray{
 * 				pulumi.String("4444:4444:4444:4444::1/64"),
 * 			},
 * 			VlanId: pulumi.Int(44),
 * 			Labels: pulumi.StringMap{
 * 				"environment": pulumi.String("dev"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.edgenetwork.Network;
 * import com.pulumi.gcp.edgenetwork.NetworkArgs;
 * import com.pulumi.gcp.edgenetwork.Subnet;
 * import com.pulumi.gcp.edgenetwork.SubnetArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
 *             .networkId("example-network")
 *             .location("us-west1")
 *             .zone("")
 *             .description("Example network.")
 *             .mtu(9000)
 *             .build());
 *         var exampleSubnetWithVlanId = new Subnet("exampleSubnetWithVlanId", SubnetArgs.builder()
 *             .subnetId("example-subnet-with-vlan-id")
 *             .location("us-west1")
 *             .zone("")
 *             .description("Example subnet with VLAN ID.")
 *             .network(exampleNetwork.id())
 *             .ipv6Cidrs("4444:4444:4444:4444::1/64")
 *             .vlanId(44)
 *             .labels(Map.of("environment", "dev"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   exampleSubnetWithVlanId:
 *     type: gcp:edgenetwork:Subnet
 *     name: example_subnet_with_vlan_id
 *     properties:
 *       subnetId: example-subnet-with-vlan-id
 *       location: us-west1
 *       zone:
 *       description: Example subnet with VLAN ID.
 *       network: ${exampleNetwork.id}
 *       ipv6Cidrs:
 *         - 4444:4444:4444:4444::1/64
 *       vlanId: 44
 *       labels:
 *         environment: dev
 *   exampleNetwork:
 *     type: gcp:edgenetwork:Network
 *     name: example_network
 *     properties:
 *       networkId: example-network
 *       location: us-west1
 *       zone:
 *       description: Example network.
 *       mtu: 9000
 * ```
 * 
 * ## Import
 * Subnet can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/zones/{{zone}}/subnets/{{subnet_id}}`
 * * `{{project}}/{{location}}/{{zone}}/{{subnet_id}}`
 * * `{{location}}/{{zone}}/{{subnet_id}}`
 * * `{{location}}/{{subnet_id}}`
 * * `{{name}}`
 * When using the `pulumi import` command, Subnet can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:edgenetwork/subnet:Subnet default projects/{{project}}/locations/{{location}}/zones/{{zone}}/subnets/{{subnet_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:edgenetwork/subnet:Subnet default {{project}}/{{location}}/{{zone}}/{{subnet_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:edgenetwork/subnet:Subnet default {{location}}/{{zone}}/{{subnet_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:edgenetwork/subnet:Subnet default {{location}}/{{subnet_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:edgenetwork/subnet:Subnet default {{name}}
 * ```
 * @property description A free-text description of the resource. Max length 1024 characters.
 * @property ipv4Cidrs The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format.
 * @property ipv6Cidrs The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format.
 * @property labels Labels associated with this resource.
 * @property location The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
 * @property 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}}`
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property subnetId A unique ID that identifies this subnet.
 * - - -
 * @property vlanId VLAN ID for this subnetwork. If not specified, one is assigned automatically.
 * @property zone The name of the target Distributed Cloud Edge zone.
 */
public data class SubnetArgs(
    public val description: Output? = null,
    public val ipv4Cidrs: Output>? = null,
    public val ipv6Cidrs: Output>? = null,
    public val labels: Output>? = null,
    public val location: Output? = null,
    public val network: Output? = null,
    public val project: Output? = null,
    public val subnetId: Output? = null,
    public val vlanId: Output? = null,
    public val zone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.edgenetwork.SubnetArgs =
        com.pulumi.gcp.edgenetwork.SubnetArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .ipv4Cidrs(ipv4Cidrs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ipv6Cidrs(ipv6Cidrs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .location(location?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .subnetId(subnetId?.applyValue({ args0 -> args0 }))
            .vlanId(vlanId?.applyValue({ args0 -> args0 }))
            .zone(zone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SubnetArgs].
 */
@PulumiTagMarker
public class SubnetArgsBuilder internal constructor() {
    private var description: Output? = null

    private var ipv4Cidrs: Output>? = null

    private var ipv6Cidrs: Output>? = null

    private var labels: Output>? = null

    private var location: Output? = null

    private var network: Output? = null

    private var project: Output? = null

    private var subnetId: Output? = null

    private var vlanId: Output? = null

    private var zone: Output? = null

    /**
     * @param value A free-text description of the resource. Max length 1024 characters.
     */
    @JvmName("arrhwkgqnhhecfwy")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format.
     */
    @JvmName("urupkfogmyvukkyk")
    public suspend fun ipv4Cidrs(`value`: Output>) {
        this.ipv4Cidrs = value
    }

    @JvmName("yrewhsbejrlmuffi")
    public suspend fun ipv4Cidrs(vararg values: Output) {
        this.ipv4Cidrs = Output.all(values.asList())
    }

    /**
     * @param values The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format.
     */
    @JvmName("qhilumysyxaccbyw")
    public suspend fun ipv4Cidrs(values: List>) {
        this.ipv4Cidrs = Output.all(values)
    }

    /**
     * @param value The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format.
     */
    @JvmName("pxhvnkpbmyjmcwoh")
    public suspend fun ipv6Cidrs(`value`: Output>) {
        this.ipv6Cidrs = value
    }

    @JvmName("vlsvbbhcksnppbxa")
    public suspend fun ipv6Cidrs(vararg values: Output) {
        this.ipv6Cidrs = Output.all(values.asList())
    }

    /**
     * @param values The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format.
     */
    @JvmName("vtuocqcaekaeyyth")
    public suspend fun ipv6Cidrs(values: List>) {
        this.ipv6Cidrs = Output.all(values)
    }

    /**
     * @param value Labels associated with this resource.
     */
    @JvmName("rinwyoeirbfptfpo")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
     */
    @JvmName("odahuepmkcpufpbf")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The ID of the network to which this router belongs.
     * Must be of the form: `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}`
     */
    @JvmName("dwjohhdubmbsjpsv")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("yvailmfgvgyraowm")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value A unique ID that identifies this subnet.
     * - - -
     */
    @JvmName("lfsvrmrcnhjimquw")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value VLAN ID for this subnetwork. If not specified, one is assigned automatically.
     */
    @JvmName("urbjoeesonkkpjmo")
    public suspend fun vlanId(`value`: Output) {
        this.vlanId = value
    }

    /**
     * @param value The name of the target Distributed Cloud Edge zone.
     */
    @JvmName("migodhnmljwxllmg")
    public suspend fun zone(`value`: Output) {
        this.zone = value
    }

    /**
     * @param value A free-text description of the resource. Max length 1024 characters.
     */
    @JvmName("eeixfmdwqbeperjd")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format.
     */
    @JvmName("moudxntfddjydyxn")
    public suspend fun ipv4Cidrs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv4Cidrs = mapped
    }

    /**
     * @param values The ranges of ipv4 addresses that are owned by this subnetwork, in CIDR format.
     */
    @JvmName("wnfpmufcexidhtlq")
    public suspend fun ipv4Cidrs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipv4Cidrs = mapped
    }

    /**
     * @param value The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format.
     */
    @JvmName("kicxapgfmcwknusb")
    public suspend fun ipv6Cidrs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv6Cidrs = mapped
    }

    /**
     * @param values The ranges of ipv6 addresses that are owned by this subnetwork, in CIDR format.
     */
    @JvmName("eobenxpnhroagmyt")
    public suspend fun ipv6Cidrs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipv6Cidrs = mapped
    }

    /**
     * @param value Labels associated with this resource.
     */
    @JvmName("wohxthpoaymavfmc")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Labels associated with this resource.
     */
    @JvmName("ewvekvlmjbierqml")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
     */
    @JvmName("xqcimlfrnlxyhhcj")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The ID of the network to which this router belongs.
     * Must be of the form: `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}`
     */
    @JvmName("iqbjsdnhyfrvypxu")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("dwocfdgbbyfbpvci")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value A unique ID that identifies this subnet.
     * - - -
     */
    @JvmName("bmdgcxtjdlqnyfdq")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    /**
     * @param value VLAN ID for this subnetwork. If not specified, one is assigned automatically.
     */
    @JvmName("dipvgygscphxavxr")
    public suspend fun vlanId(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vlanId = mapped
    }

    /**
     * @param value The name of the target Distributed Cloud Edge zone.
     */
    @JvmName("ybyxtssidrdfbmhi")
    public suspend fun zone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zone = mapped
    }

    internal fun build(): SubnetArgs = SubnetArgs(
        description = description,
        ipv4Cidrs = ipv4Cidrs,
        ipv6Cidrs = ipv6Cidrs,
        labels = labels,
        location = location,
        network = network,
        project = project,
        subnetId = subnetId,
        vlanId = vlanId,
        zone = zone,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy