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

com.pulumi.azurenative.azurestackhci.kotlin.inputs.NicDetailArgs.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.azurestackhci.kotlin.inputs

import com.pulumi.azurenative.azurestackhci.inputs.NicDetailArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The NIC Detail of a device.
 * @property adapterName Adapter Name of NIC
 * @property componentId Component Id of NIC
 * @property defaultGateway Default Gateway of NIC
 * @property defaultIsolationId Default Isolation of Management NIC
 * @property dnsServers DNS Servers for NIC
 * @property driverVersion Driver Version of NIC
 * @property interfaceDescription Interface Description of NIC
 * @property ip4Address Subnet Mask of NIC
 * @property subnetMask Subnet Mask of NIC
 */
public data class NicDetailArgs(
    public val adapterName: Output,
    public val componentId: Output? = null,
    public val defaultGateway: Output? = null,
    public val defaultIsolationId: Output? = null,
    public val dnsServers: Output>? = null,
    public val driverVersion: Output? = null,
    public val interfaceDescription: Output? = null,
    public val ip4Address: Output? = null,
    public val subnetMask: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurestackhci.inputs.NicDetailArgs =
        com.pulumi.azurenative.azurestackhci.inputs.NicDetailArgs.builder()
            .adapterName(adapterName.applyValue({ args0 -> args0 }))
            .componentId(componentId?.applyValue({ args0 -> args0 }))
            .defaultGateway(defaultGateway?.applyValue({ args0 -> args0 }))
            .defaultIsolationId(defaultIsolationId?.applyValue({ args0 -> args0 }))
            .dnsServers(dnsServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .driverVersion(driverVersion?.applyValue({ args0 -> args0 }))
            .interfaceDescription(interfaceDescription?.applyValue({ args0 -> args0 }))
            .ip4Address(ip4Address?.applyValue({ args0 -> args0 }))
            .subnetMask(subnetMask?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NicDetailArgs].
 */
@PulumiTagMarker
public class NicDetailArgsBuilder internal constructor() {
    private var adapterName: Output? = null

    private var componentId: Output? = null

    private var defaultGateway: Output? = null

    private var defaultIsolationId: Output? = null

    private var dnsServers: Output>? = null

    private var driverVersion: Output? = null

    private var interfaceDescription: Output? = null

    private var ip4Address: Output? = null

    private var subnetMask: Output? = null

    /**
     * @param value Adapter Name of NIC
     */
    @JvmName("qixsauvhmndpxflk")
    public suspend fun adapterName(`value`: Output) {
        this.adapterName = value
    }

    /**
     * @param value Component Id of NIC
     */
    @JvmName("vulvipulxhfrhuhs")
    public suspend fun componentId(`value`: Output) {
        this.componentId = value
    }

    /**
     * @param value Default Gateway of NIC
     */
    @JvmName("rdgaebhkrbyilktu")
    public suspend fun defaultGateway(`value`: Output) {
        this.defaultGateway = value
    }

    /**
     * @param value Default Isolation of Management NIC
     */
    @JvmName("eaeyjcevrthhwbhs")
    public suspend fun defaultIsolationId(`value`: Output) {
        this.defaultIsolationId = value
    }

    /**
     * @param value DNS Servers for NIC
     */
    @JvmName("yuwqbyaetoeqncyc")
    public suspend fun dnsServers(`value`: Output>) {
        this.dnsServers = value
    }

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

    /**
     * @param values DNS Servers for NIC
     */
    @JvmName("ojvtpuphjsislqly")
    public suspend fun dnsServers(values: List>) {
        this.dnsServers = Output.all(values)
    }

    /**
     * @param value Driver Version of NIC
     */
    @JvmName("fxmjmwtaobxoseih")
    public suspend fun driverVersion(`value`: Output) {
        this.driverVersion = value
    }

    /**
     * @param value Interface Description of NIC
     */
    @JvmName("nwoktulnliulcunr")
    public suspend fun interfaceDescription(`value`: Output) {
        this.interfaceDescription = value
    }

    /**
     * @param value Subnet Mask of NIC
     */
    @JvmName("htlxngitbjgfvpdi")
    public suspend fun ip4Address(`value`: Output) {
        this.ip4Address = value
    }

    /**
     * @param value Subnet Mask of NIC
     */
    @JvmName("piajemfxpwlosxjm")
    public suspend fun subnetMask(`value`: Output) {
        this.subnetMask = value
    }

    /**
     * @param value Adapter Name of NIC
     */
    @JvmName("bbfwotxbmolmqlut")
    public suspend fun adapterName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adapterName = mapped
    }

    /**
     * @param value Component Id of NIC
     */
    @JvmName("qovrahiruwlmqxnq")
    public suspend fun componentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentId = mapped
    }

    /**
     * @param value Default Gateway of NIC
     */
    @JvmName("fiilxgygwpdrmtng")
    public suspend fun defaultGateway(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultGateway = mapped
    }

    /**
     * @param value Default Isolation of Management NIC
     */
    @JvmName("ovuyouxoyoxmvxvb")
    public suspend fun defaultIsolationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultIsolationId = mapped
    }

    /**
     * @param value DNS Servers for NIC
     */
    @JvmName("pubmlkxcmrtfpunn")
    public suspend fun dnsServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsServers = mapped
    }

    /**
     * @param values DNS Servers for NIC
     */
    @JvmName("hwbcnolegqxjkmse")
    public suspend fun dnsServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dnsServers = mapped
    }

    /**
     * @param value Driver Version of NIC
     */
    @JvmName("fylckkfrogpomjpi")
    public suspend fun driverVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.driverVersion = mapped
    }

    /**
     * @param value Interface Description of NIC
     */
    @JvmName("ucpbmmcpgasmdgsi")
    public suspend fun interfaceDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interfaceDescription = mapped
    }

    /**
     * @param value Subnet Mask of NIC
     */
    @JvmName("aucqmehdgqwgkiqy")
    public suspend fun ip4Address(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ip4Address = mapped
    }

    /**
     * @param value Subnet Mask of NIC
     */
    @JvmName("mmwiksaejkvuidbj")
    public suspend fun subnetMask(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetMask = mapped
    }

    internal fun build(): NicDetailArgs = NicDetailArgs(
        adapterName = adapterName ?: throw PulumiNullFieldException("adapterName"),
        componentId = componentId,
        defaultGateway = defaultGateway,
        defaultIsolationId = defaultIsolationId,
        dnsServers = dnsServers,
        driverVersion = driverVersion,
        interfaceDescription = interfaceDescription,
        ip4Address = ip4Address,
        subnetMask = subnetMask,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy