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

com.pulumi.azurenative.migrate.kotlin.inputs.NetworkInterfaceResourceSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.NetworkInterfaceResourceSettingsArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Defines the network interface resource settings.
 * @property enableAcceleratedNetworking Gets or sets a value indicating whether accelerated networking is enabled.
 * @property ipConfigurations Gets or sets the IP configurations of the NIC.
 * @property resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
 * Expected value is 'Microsoft.Network/networkInterfaces'.
 * @property tags Gets or sets the Resource tags.
 * @property targetResourceGroupName Gets or sets the target resource group name.
 * @property targetResourceName Gets or sets the target Resource name.
 */
public data class NetworkInterfaceResourceSettingsArgs(
    public val enableAcceleratedNetworking: Output? = null,
    public val ipConfigurations: Output>? = null,
    public val resourceType: Output,
    public val tags: Output>? = null,
    public val targetResourceGroupName: Output? = null,
    public val targetResourceName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.NetworkInterfaceResourceSettingsArgs = com.pulumi.azurenative.migrate.inputs.NetworkInterfaceResourceSettingsArgs.builder()
        .enableAcceleratedNetworking(enableAcceleratedNetworking?.applyValue({ args0 -> args0 }))
        .ipConfigurations(
            ipConfigurations?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .resourceType(resourceType.applyValue({ args0 -> args0 }))
        .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
        .targetResourceGroupName(targetResourceGroupName?.applyValue({ args0 -> args0 }))
        .targetResourceName(targetResourceName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NetworkInterfaceResourceSettingsArgs].
 */
@PulumiTagMarker
public class NetworkInterfaceResourceSettingsArgsBuilder internal constructor() {
    private var enableAcceleratedNetworking: Output? = null

    private var ipConfigurations: Output>? = null

    private var resourceType: Output? = null

    private var tags: Output>? = null

    private var targetResourceGroupName: Output? = null

    private var targetResourceName: Output? = null

    /**
     * @param value Gets or sets a value indicating whether accelerated networking is enabled.
     */
    @JvmName("nvdwrxnfomanchpj")
    public suspend fun enableAcceleratedNetworking(`value`: Output) {
        this.enableAcceleratedNetworking = value
    }

    /**
     * @param value Gets or sets the IP configurations of the NIC.
     */
    @JvmName("fhqeojscrrneokqo")
    public suspend fun ipConfigurations(`value`: Output>) {
        this.ipConfigurations = value
    }

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

    /**
     * @param values Gets or sets the IP configurations of the NIC.
     */
    @JvmName("yjadmwfghwmujnov")
    public suspend fun ipConfigurations(values: List>) {
        this.ipConfigurations = Output.all(values)
    }

    /**
     * @param value The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Network/networkInterfaces'.
     */
    @JvmName("eyfbpcauckphbtxu")
    public suspend fun resourceType(`value`: Output) {
        this.resourceType = value
    }

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

    /**
     * @param value Gets or sets the target resource group name.
     */
    @JvmName("qcejovjchrvkqaiy")
    public suspend fun targetResourceGroupName(`value`: Output) {
        this.targetResourceGroupName = value
    }

    /**
     * @param value Gets or sets the target Resource name.
     */
    @JvmName("pwpjldrfhjkpxyji")
    public suspend fun targetResourceName(`value`: Output) {
        this.targetResourceName = value
    }

    /**
     * @param value Gets or sets a value indicating whether accelerated networking is enabled.
     */
    @JvmName("ilhnftudiixxqjsj")
    public suspend fun enableAcceleratedNetworking(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableAcceleratedNetworking = mapped
    }

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

    /**
     * @param argument Gets or sets the IP configurations of the NIC.
     */
    @JvmName("oslrbkfbvanubnui")
    public suspend fun ipConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NicIpConfigurationResourceSettingsArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument Gets or sets the IP configurations of the NIC.
     */
    @JvmName("twajxrjwucwgssps")
    public suspend fun ipConfigurations(vararg argument: suspend NicIpConfigurationResourceSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NicIpConfigurationResourceSettingsArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument Gets or sets the IP configurations of the NIC.
     */
    @JvmName("rcolwttgcskkliup")
    public suspend fun ipConfigurations(argument: suspend NicIpConfigurationResourceSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NicIpConfigurationResourceSettingsArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param values Gets or sets the IP configurations of the NIC.
     */
    @JvmName("bvdpfswkjwbously")
    public suspend fun ipConfigurations(vararg values: NicIpConfigurationResourceSettingsArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param value The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Network/networkInterfaces'.
     */
    @JvmName("ftoltjmmyxcejfcp")
    public suspend fun resourceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceType = mapped
    }

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

    /**
     * @param values Gets or sets the Resource tags.
     */
    @JvmName("rfqjsypeoxntvywy")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Gets or sets the target resource group name.
     */
    @JvmName("disnjvfgwmnyafoy")
    public suspend fun targetResourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetResourceGroupName = mapped
    }

    /**
     * @param value Gets or sets the target Resource name.
     */
    @JvmName("lqhtbjcmweogtgfd")
    public suspend fun targetResourceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetResourceName = mapped
    }

    internal fun build(): NetworkInterfaceResourceSettingsArgs = NetworkInterfaceResourceSettingsArgs(
        enableAcceleratedNetworking = enableAcceleratedNetworking,
        ipConfigurations = ipConfigurations,
        resourceType = resourceType ?: throw PulumiNullFieldException("resourceType"),
        tags = tags,
        targetResourceGroupName = targetResourceGroupName,
        targetResourceName = targetResourceName ?: throw PulumiNullFieldException("targetResourceName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy