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

com.pulumi.azure.compute.kotlin.outputs.WindowsVirtualMachineScaleSetNetworkInterface.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property dnsServers A list of IP Addresses of DNS Servers which should be assigned to the Network Interface.
 * @property enableAcceleratedNetworking Does this Network Interface support Accelerated Networking? Defaults to `false`.
 * @property enableIpForwarding Does this Network Interface support IP Forwarding? Defaults to `false`.
 * @property ipConfigurations One or more `ip_configuration` blocks as defined above.
 * @property name The Name which should be used for this Network Interface. Changing this forces a new resource to be created.
 * @property networkSecurityGroupId The ID of a Network Security Group which should be assigned to this Network Interface.
 * @property primary Is this the Primary IP Configuration?
 * > **Note:** If multiple `network_interface` blocks are specified, one must be set to `primary`.
 */
public data class WindowsVirtualMachineScaleSetNetworkInterface(
    public val dnsServers: List? = null,
    public val enableAcceleratedNetworking: Boolean? = null,
    public val enableIpForwarding: Boolean? = null,
    public val ipConfigurations: List,
    public val name: String,
    public val networkSecurityGroupId: String? = null,
    public val primary: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.WindowsVirtualMachineScaleSetNetworkInterface): WindowsVirtualMachineScaleSetNetworkInterface =
            WindowsVirtualMachineScaleSetNetworkInterface(
                dnsServers = javaType.dnsServers().map({ args0 -> args0 }),
                enableAcceleratedNetworking = javaType.enableAcceleratedNetworking().map({ args0 ->
                    args0
                }).orElse(null),
                enableIpForwarding = javaType.enableIpForwarding().map({ args0 -> args0 }).orElse(null),
                ipConfigurations = javaType.ipConfigurations().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.compute.kotlin.outputs.WindowsVirtualMachineScaleSetNetworkInterfaceIpConfiguration.Companion.toKotlin(args0)
                    })
                }),
                name = javaType.name(),
                networkSecurityGroupId = javaType.networkSecurityGroupId().map({ args0 -> args0 }).orElse(null),
                primary = javaType.primary().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy