![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.compute.kotlin.outputs.LinuxVirtualMachineScaleSetNetworkInterface.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 LinuxVirtualMachineScaleSetNetworkInterface(
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.LinuxVirtualMachineScaleSetNetworkInterface): LinuxVirtualMachineScaleSetNetworkInterface = LinuxVirtualMachineScaleSetNetworkInterface(
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.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfiguration.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