![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.NetworkInterfaceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.connectedvmwarevsphere.kotlin.inputs
import com.pulumi.azurenative.connectedvmwarevsphere.inputs.NetworkInterfaceArgs.builder
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.enums.NICType
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.enums.PowerOnBootOption
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Network Interface model
* @property deviceKey Gets or sets the device key value.
* @property ipSettings Gets or sets the ipsettings.
* @property name Gets or sets the name of the network interface.
* @property networkId Gets or sets the ARM Id of the network resource to connect the virtual machine.
* @property nicType NIC type
* @property powerOnBoot Gets or sets the power on boot.
*/
public data class NetworkInterfaceArgs(
public val deviceKey: Output? = null,
public val ipSettings: Output? = null,
public val name: Output? = null,
public val networkId: Output? = null,
public val nicType: Output>? = null,
public val powerOnBoot: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.connectedvmwarevsphere.inputs.NetworkInterfaceArgs =
com.pulumi.azurenative.connectedvmwarevsphere.inputs.NetworkInterfaceArgs.builder()
.deviceKey(deviceKey?.applyValue({ args0 -> args0 }))
.ipSettings(ipSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 }))
.networkId(networkId?.applyValue({ args0 -> args0 }))
.nicType(
nicType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.powerOnBoot(
powerOnBoot?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [NetworkInterfaceArgs].
*/
@PulumiTagMarker
public class NetworkInterfaceArgsBuilder internal constructor() {
private var deviceKey: Output? = null
private var ipSettings: Output? = null
private var name: Output? = null
private var networkId: Output? = null
private var nicType: Output>? = null
private var powerOnBoot: Output>? = null
/**
* @param value Gets or sets the device key value.
*/
@JvmName("ujfislxxpplbyrou")
public suspend fun deviceKey(`value`: Output) {
this.deviceKey = value
}
/**
* @param value Gets or sets the ipsettings.
*/
@JvmName("twnmnppvfvaiytut")
public suspend fun ipSettings(`value`: Output) {
this.ipSettings = value
}
/**
* @param value Gets or sets the name of the network interface.
*/
@JvmName("gjfvvhfuhlbdpbpj")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Gets or sets the ARM Id of the network resource to connect the virtual machine.
*/
@JvmName("ovmnwhunoolqanhr")
public suspend fun networkId(`value`: Output) {
this.networkId = value
}
/**
* @param value NIC type
*/
@JvmName("pidxbtxgxbsgvwkm")
public suspend fun nicType(`value`: Output>) {
this.nicType = value
}
/**
* @param value Gets or sets the power on boot.
*/
@JvmName("ixdqacxpysbkcwft")
public suspend fun powerOnBoot(`value`: Output>) {
this.powerOnBoot = value
}
/**
* @param value Gets or sets the device key value.
*/
@JvmName("brimbxfkwdmprgfo")
public suspend fun deviceKey(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deviceKey = mapped
}
/**
* @param value Gets or sets the ipsettings.
*/
@JvmName("iwtnxujbbiqkhait")
public suspend fun ipSettings(`value`: NicIPSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipSettings = mapped
}
/**
* @param argument Gets or sets the ipsettings.
*/
@JvmName("megmhdqarklwrkge")
public suspend fun ipSettings(argument: suspend NicIPSettingsArgsBuilder.() -> Unit) {
val toBeMapped = NicIPSettingsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.ipSettings = mapped
}
/**
* @param value Gets or sets the name of the network interface.
*/
@JvmName("cnqxuupaaakgotot")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Gets or sets the ARM Id of the network resource to connect the virtual machine.
*/
@JvmName("swqagwmbrqcoyubp")
public suspend fun networkId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkId = mapped
}
/**
* @param value NIC type
*/
@JvmName("qvjtbhyfeayqifiv")
public suspend fun nicType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nicType = mapped
}
/**
* @param value NIC type
*/
@JvmName("lvquwywifkypguuc")
public fun nicType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.nicType = mapped
}
/**
* @param value NIC type
*/
@JvmName("fppcmwsywcibkubw")
public fun nicType(`value`: NICType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.nicType = mapped
}
/**
* @param value Gets or sets the power on boot.
*/
@JvmName("odnbvaptbaincawl")
public suspend fun powerOnBoot(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.powerOnBoot = mapped
}
/**
* @param value Gets or sets the power on boot.
*/
@JvmName("dmqdheidposhkwus")
public fun powerOnBoot(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.powerOnBoot = mapped
}
/**
* @param value Gets or sets the power on boot.
*/
@JvmName("ucmwsalbkojxaeed")
public fun powerOnBoot(`value`: PowerOnBootOption) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.powerOnBoot = mapped
}
internal fun build(): NetworkInterfaceArgs = NetworkInterfaceArgs(
deviceKey = deviceKey,
ipSettings = ipSettings,
name = name,
networkId = networkId,
nicType = nicType,
powerOnBoot = powerOnBoot,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy