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

com.pulumi.azurenative.compute.kotlin.inputs.NetworkInterfaceReferenceArgs.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.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.NetworkInterfaceReferenceArgs.builder
import com.pulumi.azurenative.compute.kotlin.enums.DeleteOptions
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Describes a network interface reference.
 * @property deleteOption Specify what happens to the network interface when the VM is deleted
 * @property id Resource Id
 * @property primary Specifies the primary network interface in case the virtual machine has more than 1 network interface.
 */
public data class NetworkInterfaceReferenceArgs(
    public val deleteOption: Output>? = null,
    public val id: Output? = null,
    public val primary: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.NetworkInterfaceReferenceArgs =
        com.pulumi.azurenative.compute.inputs.NetworkInterfaceReferenceArgs.builder()
            .deleteOption(
                deleteOption?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .id(id?.applyValue({ args0 -> args0 }))
            .primary(primary?.applyValue({ args0 -> args0 })).build()
}

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

    private var id: Output? = null

    private var primary: Output? = null

    /**
     * @param value Specify what happens to the network interface when the VM is deleted
     */
    @JvmName("cihpoyumkfyxyfic")
    public suspend fun deleteOption(`value`: Output>) {
        this.deleteOption = value
    }

    /**
     * @param value Resource Id
     */
    @JvmName("evxlitrbdkmhshie")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Specifies the primary network interface in case the virtual machine has more than 1 network interface.
     */
    @JvmName("aokgwmochdcpbidu")
    public suspend fun primary(`value`: Output) {
        this.primary = value
    }

    /**
     * @param value Specify what happens to the network interface when the VM is deleted
     */
    @JvmName("genqvftrusjsjyie")
    public suspend fun deleteOption(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deleteOption = mapped
    }

    /**
     * @param value Specify what happens to the network interface when the VM is deleted
     */
    @JvmName("qcyejtxbsipobdfk")
    public fun deleteOption(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deleteOption = mapped
    }

    /**
     * @param value Specify what happens to the network interface when the VM is deleted
     */
    @JvmName("bvkwrbdyinfljeys")
    public fun deleteOption(`value`: DeleteOptions) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deleteOption = mapped
    }

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

    /**
     * @param value Specifies the primary network interface in case the virtual machine has more than 1 network interface.
     */
    @JvmName("edkyaheluqoygeuv")
    public suspend fun primary(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.primary = mapped
    }

    internal fun build(): NetworkInterfaceReferenceArgs = NetworkInterfaceReferenceArgs(
        deleteOption = deleteOption,
        id = id,
        primary = primary,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy