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

com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.NicIPSettingsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs

import com.pulumi.azurenative.connectedvmwarevsphere.inputs.NicIPSettingsArgs.builder
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.enums.IPAddressAllocationMethod
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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Defines the network interface ip settings.
 * @property allocationMethod Gets or sets the nic allocation method.
 * @property dnsServers Gets or sets the dns servers.
 * @property gateway Gets or sets the gateway.
 * @property ipAddress Gets or sets the ip address for the nic.
 * @property subnetMask Gets or sets the mask.
 */
public data class NicIPSettingsArgs(
    public val allocationMethod: Output>? = null,
    public val dnsServers: Output>? = null,
    public val gateway: Output>? = null,
    public val ipAddress: Output? = null,
    public val subnetMask: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.connectedvmwarevsphere.inputs.NicIPSettingsArgs =
        com.pulumi.azurenative.connectedvmwarevsphere.inputs.NicIPSettingsArgs.builder()
            .allocationMethod(
                allocationMethod?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .dnsServers(dnsServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .gateway(gateway?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ipAddress(ipAddress?.applyValue({ args0 -> args0 }))
            .subnetMask(subnetMask?.applyValue({ args0 -> args0 })).build()
}

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

    private var dnsServers: Output>? = null

    private var gateway: Output>? = null

    private var ipAddress: Output? = null

    private var subnetMask: Output? = null

    /**
     * @param value Gets or sets the nic allocation method.
     */
    @JvmName("xsrodyicdcseoqeb")
    public suspend fun allocationMethod(`value`: Output>) {
        this.allocationMethod = value
    }

    /**
     * @param value Gets or sets the dns servers.
     */
    @JvmName("cxpqqnatrpjxnera")
    public suspend fun dnsServers(`value`: Output>) {
        this.dnsServers = value
    }

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

    /**
     * @param values Gets or sets the dns servers.
     */
    @JvmName("jkxibrarklliyowm")
    public suspend fun dnsServers(values: List>) {
        this.dnsServers = Output.all(values)
    }

    /**
     * @param value Gets or sets the gateway.
     */
    @JvmName("rfykqibyocutrfpl")
    public suspend fun gateway(`value`: Output>) {
        this.gateway = value
    }

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

    /**
     * @param values Gets or sets the gateway.
     */
    @JvmName("vnffqadikejuvspq")
    public suspend fun gateway(values: List>) {
        this.gateway = Output.all(values)
    }

    /**
     * @param value Gets or sets the ip address for the nic.
     */
    @JvmName("jlacxrxesvaarcjk")
    public suspend fun ipAddress(`value`: Output) {
        this.ipAddress = value
    }

    /**
     * @param value Gets or sets the mask.
     */
    @JvmName("qtsljiwikqjoqnyi")
    public suspend fun subnetMask(`value`: Output) {
        this.subnetMask = value
    }

    /**
     * @param value Gets or sets the nic allocation method.
     */
    @JvmName("oatiwcmmvqyyourv")
    public suspend fun allocationMethod(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allocationMethod = mapped
    }

    /**
     * @param value Gets or sets the nic allocation method.
     */
    @JvmName("uvhpqvmemrjgevxp")
    public fun allocationMethod(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allocationMethod = mapped
    }

    /**
     * @param value Gets or sets the nic allocation method.
     */
    @JvmName("mhkumlsoagmjeklv")
    public fun allocationMethod(`value`: IPAddressAllocationMethod) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allocationMethod = mapped
    }

    /**
     * @param value Gets or sets the dns servers.
     */
    @JvmName("rptvwppepnexcjug")
    public suspend fun dnsServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsServers = mapped
    }

    /**
     * @param values Gets or sets the dns servers.
     */
    @JvmName("hhkkjbjjxxjmrxid")
    public suspend fun dnsServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dnsServers = mapped
    }

    /**
     * @param value Gets or sets the gateway.
     */
    @JvmName("wrnuktnofgwmkjrm")
    public suspend fun gateway(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gateway = mapped
    }

    /**
     * @param values Gets or sets the gateway.
     */
    @JvmName("jnjiomohlrfjvhcd")
    public suspend fun gateway(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gateway = mapped
    }

    /**
     * @param value Gets or sets the ip address for the nic.
     */
    @JvmName("qnqelopgdypxijdt")
    public suspend fun ipAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddress = mapped
    }

    /**
     * @param value Gets or sets the mask.
     */
    @JvmName("xrntecytbythpfyx")
    public suspend fun subnetMask(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetMask = mapped
    }

    internal fun build(): NicIPSettingsArgs = NicIPSettingsArgs(
        allocationMethod = allocationMethod,
        dnsServers = dnsServers,
        gateway = gateway,
        ipAddress = ipAddress,
        subnetMask = subnetMask,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy