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

com.pulumi.azurenative.network.kotlin.NetworkInterfaceArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin

import com.pulumi.azurenative.network.NetworkInterfaceArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.NetworkInterfaceAuxiliaryMode
import com.pulumi.azurenative.network.kotlin.enums.NetworkInterfaceAuxiliarySku
import com.pulumi.azurenative.network.kotlin.enums.NetworkInterfaceMigrationPhase
import com.pulumi.azurenative.network.kotlin.enums.NetworkInterfaceNicType
import com.pulumi.azurenative.network.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.network.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.NetworkInterfaceDnsSettingsArgs
import com.pulumi.azurenative.network.kotlin.inputs.NetworkInterfaceDnsSettingsArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.NetworkInterfaceIPConfigurationArgs
import com.pulumi.azurenative.network.kotlin.inputs.NetworkInterfaceIPConfigurationArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.NetworkSecurityGroupArgs
import com.pulumi.azurenative.network.kotlin.inputs.NetworkSecurityGroupArgsBuilder
import com.pulumi.azurenative.network.kotlin.inputs.PrivateLinkServiceArgs
import com.pulumi.azurenative.network.kotlin.inputs.PrivateLinkServiceArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A network interface in a resource group.
 * Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
 * Other available API versions: 2015-05-01-preview, 2018-07-01, 2019-02-01, 2019-06-01, 2019-08-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01.
 * ## Example Usage
 * ### Create network interface
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var networkInterface = new AzureNative.Network.NetworkInterface("networkInterface", new()
 *     {
 *         DisableTcpStateTracking = true,
 *         EnableAcceleratedNetworking = true,
 *         IpConfigurations = new[]
 *         {
 *             new AzureNative.Network.Inputs.NetworkInterfaceIPConfigurationArgs
 *             {
 *                 Name = "ipconfig1",
 *                 PublicIPAddress = new AzureNative.Network.Inputs.PublicIPAddressArgs
 *                 {
 *                     Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip",
 *                 },
 *                 Subnet = new AzureNative.Network.Inputs.SubnetArgs
 *                 {
 *                     Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default",
 *                 },
 *             },
 *         },
 *         Location = "eastus",
 *         NetworkInterfaceName = "test-nic",
 *         ResourceGroupName = "rg1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := network.NewNetworkInterface(ctx, "networkInterface", &network.NetworkInterfaceArgs{
 * 			DisableTcpStateTracking:     pulumi.Bool(true),
 * 			EnableAcceleratedNetworking: pulumi.Bool(true),
 * 			IpConfigurations: network.NetworkInterfaceIPConfigurationArray{
 * 				&network.NetworkInterfaceIPConfigurationArgs{
 * 					Name: pulumi.String("ipconfig1"),
 * 					PublicIPAddress: &network.PublicIPAddressTypeArgs{
 * 						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip"),
 * 					},
 * 					Subnet: &network.SubnetTypeArgs{
 * 						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default"),
 * 					},
 * 				},
 * 			},
 * 			Location:             pulumi.String("eastus"),
 * 			NetworkInterfaceName: pulumi.String("test-nic"),
 * 			ResourceGroupName:    pulumi.String("rg1"),
 * 		})
 * 		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.azurenative.network.NetworkInterface;
 * import com.pulumi.azurenative.network.NetworkInterfaceArgs;
 * import com.pulumi.azurenative.network.inputs.NetworkInterfaceIPConfigurationArgs;
 * import com.pulumi.azurenative.network.inputs.PublicIPAddressArgs;
 * import com.pulumi.azurenative.network.inputs.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 networkInterface = new NetworkInterface("networkInterface", NetworkInterfaceArgs.builder()
 *             .disableTcpStateTracking(true)
 *             .enableAcceleratedNetworking(true)
 *             .ipConfigurations(NetworkInterfaceIPConfigurationArgs.builder()
 *                 .name("ipconfig1")
 *                 .publicIPAddress(PublicIPAddressArgs.builder()
 *                     .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip")
 *                     .build())
 *                 .subnet(SubnetArgs.builder()
 *                     .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default")
 *                     .build())
 *                 .build())
 *             .location("eastus")
 *             .networkInterfaceName("test-nic")
 *             .resourceGroupName("rg1")
 *             .build());
 *     }
 * }
 * ```
 * ### Create network interface with Gateway Load Balancer Consumer configured
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var networkInterface = new AzureNative.Network.NetworkInterface("networkInterface", new()
 *     {
 *         EnableAcceleratedNetworking = true,
 *         IpConfigurations = new[]
 *         {
 *             new AzureNative.Network.Inputs.NetworkInterfaceIPConfigurationArgs
 *             {
 *                 GatewayLoadBalancer = new AzureNative.Network.Inputs.SubResourceArgs
 *                 {
 *                     Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider",
 *                 },
 *                 Name = "ipconfig1",
 *                 PublicIPAddress = new AzureNative.Network.Inputs.PublicIPAddressArgs
 *                 {
 *                     Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip",
 *                 },
 *                 Subnet = new AzureNative.Network.Inputs.SubnetArgs
 *                 {
 *                     Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default",
 *                 },
 *             },
 *         },
 *         Location = "eastus",
 *         NetworkInterfaceName = "test-nic",
 *         ResourceGroupName = "rg1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := network.NewNetworkInterface(ctx, "networkInterface", &network.NetworkInterfaceArgs{
 * 			EnableAcceleratedNetworking: pulumi.Bool(true),
 * 			IpConfigurations: network.NetworkInterfaceIPConfigurationArray{
 * 				&network.NetworkInterfaceIPConfigurationArgs{
 * 					GatewayLoadBalancer: &network.SubResourceArgs{
 * 						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider"),
 * 					},
 * 					Name: pulumi.String("ipconfig1"),
 * 					PublicIPAddress: &network.PublicIPAddressTypeArgs{
 * 						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip"),
 * 					},
 * 					Subnet: &network.SubnetTypeArgs{
 * 						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default"),
 * 					},
 * 				},
 * 			},
 * 			Location:             pulumi.String("eastus"),
 * 			NetworkInterfaceName: pulumi.String("test-nic"),
 * 			ResourceGroupName:    pulumi.String("rg1"),
 * 		})
 * 		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.azurenative.network.NetworkInterface;
 * import com.pulumi.azurenative.network.NetworkInterfaceArgs;
 * import com.pulumi.azurenative.network.inputs.NetworkInterfaceIPConfigurationArgs;
 * import com.pulumi.azurenative.network.inputs.SubResourceArgs;
 * import com.pulumi.azurenative.network.inputs.PublicIPAddressArgs;
 * import com.pulumi.azurenative.network.inputs.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 networkInterface = new NetworkInterface("networkInterface", NetworkInterfaceArgs.builder()
 *             .enableAcceleratedNetworking(true)
 *             .ipConfigurations(NetworkInterfaceIPConfigurationArgs.builder()
 *                 .gatewayLoadBalancer(SubResourceArgs.builder()
 *                     .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider")
 *                     .build())
 *                 .name("ipconfig1")
 *                 .publicIPAddress(PublicIPAddressArgs.builder()
 *                     .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip")
 *                     .build())
 *                 .subnet(SubnetArgs.builder()
 *                     .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default")
 *                     .build())
 *                 .build())
 *             .location("eastus")
 *             .networkInterfaceName("test-nic")
 *             .resourceGroupName("rg1")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:network:NetworkInterface test-nic /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}
 * ```
 * @property auxiliaryMode Auxiliary mode of Network Interface resource.
 * @property auxiliarySku Auxiliary sku of Network Interface resource.
 * @property disableTcpStateTracking Indicates whether to disable tcp state tracking.
 * @property dnsSettings The DNS settings in network interface.
 * @property enableAcceleratedNetworking If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.
 * @property enableIPForwarding Indicates whether IP forwarding is enabled on this network interface.
 * @property extendedLocation The extended location of the network interface.
 * @property id Resource ID.
 * @property ipConfigurations A list of IPConfigurations of the network interface.
 * @property location Resource location.
 * @property migrationPhase Migration phase of Network Interface resource.
 * @property networkInterfaceName The name of the network interface.
 * @property networkSecurityGroup The reference to the NetworkSecurityGroup resource.
 * @property nicType Type of Network Interface resource.
 * @property privateLinkService Privatelinkservice of the network interface resource.
 * @property resourceGroupName The name of the resource group.
 * @property tags Resource tags.
 * @property workloadType WorkloadType of the NetworkInterface for BareMetal resources
 */
public data class NetworkInterfaceArgs(
    public val auxiliaryMode: Output>? = null,
    public val auxiliarySku: Output>? = null,
    public val disableTcpStateTracking: Output? = null,
    public val dnsSettings: Output? = null,
    public val enableAcceleratedNetworking: Output? = null,
    public val enableIPForwarding: Output? = null,
    public val extendedLocation: Output? = null,
    public val id: Output? = null,
    public val ipConfigurations: Output>? = null,
    public val location: Output? = null,
    public val migrationPhase: Output>? = null,
    public val networkInterfaceName: Output? = null,
    public val networkSecurityGroup: Output? = null,
    public val nicType: Output>? = null,
    public val privateLinkService: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val workloadType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.NetworkInterfaceArgs =
        com.pulumi.azurenative.network.NetworkInterfaceArgs.builder()
            .auxiliaryMode(
                auxiliaryMode?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .auxiliarySku(
                auxiliarySku?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .disableTcpStateTracking(disableTcpStateTracking?.applyValue({ args0 -> args0 }))
            .dnsSettings(dnsSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enableAcceleratedNetworking(enableAcceleratedNetworking?.applyValue({ args0 -> args0 }))
            .enableIPForwarding(enableIPForwarding?.applyValue({ args0 -> args0 }))
            .extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .id(id?.applyValue({ args0 -> args0 }))
            .ipConfigurations(
                ipConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .migrationPhase(
                migrationPhase?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .networkInterfaceName(networkInterfaceName?.applyValue({ args0 -> args0 }))
            .networkSecurityGroup(
                networkSecurityGroup?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .nicType(
                nicType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .privateLinkService(
                privateLinkService?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .workloadType(workloadType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NetworkInterfaceArgs].
 */
@PulumiTagMarker
public class NetworkInterfaceArgsBuilder internal constructor() {
    private var auxiliaryMode: Output>? = null

    private var auxiliarySku: Output>? = null

    private var disableTcpStateTracking: Output? = null

    private var dnsSettings: Output? = null

    private var enableAcceleratedNetworking: Output? = null

    private var enableIPForwarding: Output? = null

    private var extendedLocation: Output? = null

    private var id: Output? = null

    private var ipConfigurations: Output>? = null

    private var location: Output? = null

    private var migrationPhase: Output>? = null

    private var networkInterfaceName: Output? = null

    private var networkSecurityGroup: Output? = null

    private var nicType: Output>? = null

    private var privateLinkService: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var workloadType: Output? = null

    /**
     * @param value Auxiliary mode of Network Interface resource.
     */
    @JvmName("vsrfptoicsfyvyvh")
    public suspend fun auxiliaryMode(`value`: Output>) {
        this.auxiliaryMode = value
    }

    /**
     * @param value Auxiliary sku of Network Interface resource.
     */
    @JvmName("glfwchdekchtwegq")
    public suspend fun auxiliarySku(`value`: Output>) {
        this.auxiliarySku = value
    }

    /**
     * @param value Indicates whether to disable tcp state tracking.
     */
    @JvmName("vpuxkihcrxxvlogc")
    public suspend fun disableTcpStateTracking(`value`: Output) {
        this.disableTcpStateTracking = value
    }

    /**
     * @param value The DNS settings in network interface.
     */
    @JvmName("oiscddcofrcbkbnd")
    public suspend fun dnsSettings(`value`: Output) {
        this.dnsSettings = value
    }

    /**
     * @param value If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.
     */
    @JvmName("advxqnyiufwmaqvp")
    public suspend fun enableAcceleratedNetworking(`value`: Output) {
        this.enableAcceleratedNetworking = value
    }

    /**
     * @param value Indicates whether IP forwarding is enabled on this network interface.
     */
    @JvmName("xkxttachxnjbmjnu")
    public suspend fun enableIPForwarding(`value`: Output) {
        this.enableIPForwarding = value
    }

    /**
     * @param value The extended location of the network interface.
     */
    @JvmName("wxvrdqqcvoutcjjf")
    public suspend fun extendedLocation(`value`: Output) {
        this.extendedLocation = value
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("fqfucfqmwfjqugwj")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value A list of IPConfigurations of the network interface.
     */
    @JvmName("ndhipweeagganaui")
    public suspend fun ipConfigurations(`value`: Output>) {
        this.ipConfigurations = value
    }

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

    /**
     * @param values A list of IPConfigurations of the network interface.
     */
    @JvmName("tyhisxjpiaaypvwh")
    public suspend fun ipConfigurations(values: List>) {
        this.ipConfigurations = Output.all(values)
    }

    /**
     * @param value Resource location.
     */
    @JvmName("aejohqohbpxdktls")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Migration phase of Network Interface resource.
     */
    @JvmName("pgrvmgrowtiulsen")
    public suspend fun migrationPhase(`value`: Output>) {
        this.migrationPhase = value
    }

    /**
     * @param value The name of the network interface.
     */
    @JvmName("gbykythmutcastgo")
    public suspend fun networkInterfaceName(`value`: Output) {
        this.networkInterfaceName = value
    }

    /**
     * @param value The reference to the NetworkSecurityGroup resource.
     */
    @JvmName("wevhvvpftirrsguo")
    public suspend fun networkSecurityGroup(`value`: Output) {
        this.networkSecurityGroup = value
    }

    /**
     * @param value Type of Network Interface resource.
     */
    @JvmName("hyrcxfqlsvvqaegr")
    public suspend fun nicType(`value`: Output>) {
        this.nicType = value
    }

    /**
     * @param value Privatelinkservice of the network interface resource.
     */
    @JvmName("isjnlmcdbcuvbipi")
    public suspend fun privateLinkService(`value`: Output) {
        this.privateLinkService = value
    }

    /**
     * @param value The name of the resource group.
     */
    @JvmName("aqfsbeqhupooflmf")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("wcncqpwdehvieuoc")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value WorkloadType of the NetworkInterface for BareMetal resources
     */
    @JvmName("wwhokpfthbpnpkqu")
    public suspend fun workloadType(`value`: Output) {
        this.workloadType = value
    }

    /**
     * @param value Auxiliary mode of Network Interface resource.
     */
    @JvmName("mhyqcotebokxekqe")
    public suspend fun auxiliaryMode(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.auxiliaryMode = mapped
    }

    /**
     * @param value Auxiliary mode of Network Interface resource.
     */
    @JvmName("jldlitaawjpchsmt")
    public fun auxiliaryMode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.auxiliaryMode = mapped
    }

    /**
     * @param value Auxiliary mode of Network Interface resource.
     */
    @JvmName("aqedxusprbnogjby")
    public fun auxiliaryMode(`value`: NetworkInterfaceAuxiliaryMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.auxiliaryMode = mapped
    }

    /**
     * @param value Auxiliary sku of Network Interface resource.
     */
    @JvmName("clyvvwkdxskhjomg")
    public suspend fun auxiliarySku(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.auxiliarySku = mapped
    }

    /**
     * @param value Auxiliary sku of Network Interface resource.
     */
    @JvmName("tmywgfryxexblljj")
    public fun auxiliarySku(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.auxiliarySku = mapped
    }

    /**
     * @param value Auxiliary sku of Network Interface resource.
     */
    @JvmName("wdgenlituiwrkmsl")
    public fun auxiliarySku(`value`: NetworkInterfaceAuxiliarySku) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.auxiliarySku = mapped
    }

    /**
     * @param value Indicates whether to disable tcp state tracking.
     */
    @JvmName("xqwsirqslcsifxbk")
    public suspend fun disableTcpStateTracking(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disableTcpStateTracking = mapped
    }

    /**
     * @param value The DNS settings in network interface.
     */
    @JvmName("wvtgcxvhfvbgvwnm")
    public suspend fun dnsSettings(`value`: NetworkInterfaceDnsSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsSettings = mapped
    }

    /**
     * @param argument The DNS settings in network interface.
     */
    @JvmName("amonilivlcsodyjx")
    public suspend fun dnsSettings(argument: suspend NetworkInterfaceDnsSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = NetworkInterfaceDnsSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dnsSettings = mapped
    }

    /**
     * @param value If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.
     */
    @JvmName("pocqpwfyagwevcut")
    public suspend fun enableAcceleratedNetworking(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableAcceleratedNetworking = mapped
    }

    /**
     * @param value Indicates whether IP forwarding is enabled on this network interface.
     */
    @JvmName("gkhpxwcxetckpeqe")
    public suspend fun enableIPForwarding(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableIPForwarding = mapped
    }

    /**
     * @param value The extended location of the network interface.
     */
    @JvmName("okjiebeavpritueq")
    public suspend fun extendedLocation(`value`: ExtendedLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedLocation = mapped
    }

    /**
     * @param argument The extended location of the network interface.
     */
    @JvmName("hxvrwnnrolcqhxek")
    public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
        val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extendedLocation = mapped
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("orcpichkyaoyrepj")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value A list of IPConfigurations of the network interface.
     */
    @JvmName("lcvavfjulwlgvacn")
    public suspend fun ipConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param argument A list of IPConfigurations of the network interface.
     */
    @JvmName("smwqdyqswxycpopr")
    public suspend fun ipConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceIPConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument A list of IPConfigurations of the network interface.
     */
    @JvmName("uadiecyfjwbmfwug")
    public suspend fun ipConfigurations(vararg argument: suspend NetworkInterfaceIPConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceIPConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument A list of IPConfigurations of the network interface.
     */
    @JvmName("cdqmscaemdlaiuhh")
    public suspend fun ipConfigurations(argument: suspend NetworkInterfaceIPConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NetworkInterfaceIPConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param values A list of IPConfigurations of the network interface.
     */
    @JvmName("fdjfrsydscindbig")
    public suspend fun ipConfigurations(vararg values: NetworkInterfaceIPConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param value Resource location.
     */
    @JvmName("ayydcdhsxipettap")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Migration phase of Network Interface resource.
     */
    @JvmName("cdhrsiakcouomhmf")
    public suspend fun migrationPhase(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.migrationPhase = mapped
    }

    /**
     * @param value Migration phase of Network Interface resource.
     */
    @JvmName("krdkigennkqrxmgb")
    public fun migrationPhase(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.migrationPhase = mapped
    }

    /**
     * @param value Migration phase of Network Interface resource.
     */
    @JvmName("shroonjkwrpurbfu")
    public fun migrationPhase(`value`: NetworkInterfaceMigrationPhase) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.migrationPhase = mapped
    }

    /**
     * @param value The name of the network interface.
     */
    @JvmName("jdqjgqcqehwlpdoi")
    public suspend fun networkInterfaceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaceName = mapped
    }

    /**
     * @param value The reference to the NetworkSecurityGroup resource.
     */
    @JvmName("ccxywiwddhkpqjmd")
    public suspend fun networkSecurityGroup(`value`: NetworkSecurityGroupArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkSecurityGroup = mapped
    }

    /**
     * @param argument The reference to the NetworkSecurityGroup resource.
     */
    @JvmName("cgwlqmhqbcphdtlc")
    public suspend fun networkSecurityGroup(argument: suspend NetworkSecurityGroupArgsBuilder.() -> Unit) {
        val toBeMapped = NetworkSecurityGroupArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkSecurityGroup = mapped
    }

    /**
     * @param value Type of Network Interface resource.
     */
    @JvmName("slqbmtlvewxsbtyh")
    public suspend fun nicType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nicType = mapped
    }

    /**
     * @param value Type of Network Interface resource.
     */
    @JvmName("khjfmqaedfxxbhee")
    public fun nicType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nicType = mapped
    }

    /**
     * @param value Type of Network Interface resource.
     */
    @JvmName("dahpiordejgrjyxa")
    public fun nicType(`value`: NetworkInterfaceNicType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nicType = mapped
    }

    /**
     * @param value Privatelinkservice of the network interface resource.
     */
    @JvmName("vfkigsynfrswlvsh")
    public suspend fun privateLinkService(`value`: PrivateLinkServiceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateLinkService = mapped
    }

    /**
     * @param argument Privatelinkservice of the network interface resource.
     */
    @JvmName("jieqarbinlbspmrs")
    public suspend fun privateLinkService(argument: suspend PrivateLinkServiceArgsBuilder.() -> Unit) {
        val toBeMapped = PrivateLinkServiceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.privateLinkService = mapped
    }

    /**
     * @param value The name of the resource group.
     */
    @JvmName("xgxqtpplnwaarpns")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("ayuuaviioaajobti")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("klpemdscxujvyedx")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value WorkloadType of the NetworkInterface for BareMetal resources
     */
    @JvmName("kbfiwqrjhkxswoik")
    public suspend fun workloadType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workloadType = mapped
    }

    internal fun build(): NetworkInterfaceArgs = NetworkInterfaceArgs(
        auxiliaryMode = auxiliaryMode,
        auxiliarySku = auxiliarySku,
        disableTcpStateTracking = disableTcpStateTracking,
        dnsSettings = dnsSettings,
        enableAcceleratedNetworking = enableAcceleratedNetworking,
        enableIPForwarding = enableIPForwarding,
        extendedLocation = extendedLocation,
        id = id,
        ipConfigurations = ipConfigurations,
        location = location,
        migrationPhase = migrationPhase,
        networkInterfaceName = networkInterfaceName,
        networkSecurityGroup = networkSecurityGroup,
        nicType = nicType,
        privateLinkService = privateLinkService,
        resourceGroupName = resourceGroupName,
        tags = tags,
        workloadType = workloadType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy