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

com.pulumi.azure.compute.kotlin.inputs.ScaleSetNetworkProfileArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.ScaleSetNetworkProfileArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property acceleratedNetworking Specifies whether to enable accelerated networking or not.
 * @property dnsSettings A `dns_settings` block as documented below.
 * @property ipConfigurations An `ip_configuration` block as documented below.
 * @property ipForwarding Whether IP forwarding is enabled on this NIC. Defaults to `false`.
 * @property name Specifies the name of the network interface configuration.
 * @property networkSecurityGroupId Specifies the identifier for the network security group.
 * @property primary Indicates whether network interfaces created from the network interface configuration will be the primary NIC of the VM.
 */
public data class ScaleSetNetworkProfileArgs(
    public val acceleratedNetworking: Output? = null,
    public val dnsSettings: Output? = null,
    public val ipConfigurations: Output>,
    public val ipForwarding: Output? = null,
    public val name: Output,
    public val networkSecurityGroupId: Output? = null,
    public val primary: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.ScaleSetNetworkProfileArgs =
        com.pulumi.azure.compute.inputs.ScaleSetNetworkProfileArgs.builder()
            .acceleratedNetworking(acceleratedNetworking?.applyValue({ args0 -> args0 }))
            .dnsSettings(dnsSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .ipConfigurations(
                ipConfigurations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ipForwarding(ipForwarding?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .networkSecurityGroupId(networkSecurityGroupId?.applyValue({ args0 -> args0 }))
            .primary(primary.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScaleSetNetworkProfileArgs].
 */
@PulumiTagMarker
public class ScaleSetNetworkProfileArgsBuilder internal constructor() {
    private var acceleratedNetworking: Output? = null

    private var dnsSettings: Output? = null

    private var ipConfigurations: Output>? = null

    private var ipForwarding: Output? = null

    private var name: Output? = null

    private var networkSecurityGroupId: Output? = null

    private var primary: Output? = null

    /**
     * @param value Specifies whether to enable accelerated networking or not.
     */
    @JvmName("fcepqxffcusodjvv")
    public suspend fun acceleratedNetworking(`value`: Output) {
        this.acceleratedNetworking = value
    }

    /**
     * @param value A `dns_settings` block as documented below.
     */
    @JvmName("bjqqkrdeelbupfex")
    public suspend fun dnsSettings(`value`: Output) {
        this.dnsSettings = value
    }

    /**
     * @param value An `ip_configuration` block as documented below.
     */
    @JvmName("xuambosoeppcbuls")
    public suspend fun ipConfigurations(`value`: Output>) {
        this.ipConfigurations = value
    }

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

    /**
     * @param values An `ip_configuration` block as documented below.
     */
    @JvmName("ovoaocmchvrbwhju")
    public suspend fun ipConfigurations(values: List>) {
        this.ipConfigurations = Output.all(values)
    }

    /**
     * @param value Whether IP forwarding is enabled on this NIC. Defaults to `false`.
     */
    @JvmName("tskrrhtyjyvuclif")
    public suspend fun ipForwarding(`value`: Output) {
        this.ipForwarding = value
    }

    /**
     * @param value Specifies the name of the network interface configuration.
     */
    @JvmName("tmlitiobalphpsll")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the identifier for the network security group.
     */
    @JvmName("xoyletidqrvushsk")
    public suspend fun networkSecurityGroupId(`value`: Output) {
        this.networkSecurityGroupId = value
    }

    /**
     * @param value Indicates whether network interfaces created from the network interface configuration will be the primary NIC of the VM.
     */
    @JvmName("xmcxtpedjouuxtel")
    public suspend fun primary(`value`: Output) {
        this.primary = value
    }

    /**
     * @param value Specifies whether to enable accelerated networking or not.
     */
    @JvmName("gublhjxygjgminwg")
    public suspend fun acceleratedNetworking(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratedNetworking = mapped
    }

    /**
     * @param value A `dns_settings` block as documented below.
     */
    @JvmName("bnhopegoknrevekn")
    public suspend fun dnsSettings(`value`: ScaleSetNetworkProfileDnsSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsSettings = mapped
    }

    /**
     * @param argument A `dns_settings` block as documented below.
     */
    @JvmName("ynyqwlipafjtigmw")
    public suspend fun dnsSettings(argument: suspend ScaleSetNetworkProfileDnsSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = ScaleSetNetworkProfileDnsSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dnsSettings = mapped
    }

    /**
     * @param value An `ip_configuration` block as documented below.
     */
    @JvmName("jnkihbmngeqyebgi")
    public suspend fun ipConfigurations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param argument An `ip_configuration` block as documented below.
     */
    @JvmName("brdjncqduilrsgqg")
    public suspend fun ipConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ScaleSetNetworkProfileIpConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument An `ip_configuration` block as documented below.
     */
    @JvmName("bhjloyfuytfhbugd")
    public suspend fun ipConfigurations(vararg argument: suspend ScaleSetNetworkProfileIpConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ScaleSetNetworkProfileIpConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument An `ip_configuration` block as documented below.
     */
    @JvmName("cdpquatjeqaddheh")
    public suspend fun ipConfigurations(argument: suspend ScaleSetNetworkProfileIpConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ScaleSetNetworkProfileIpConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param values An `ip_configuration` block as documented below.
     */
    @JvmName("fwopewvoronghkmd")
    public suspend fun ipConfigurations(vararg values: ScaleSetNetworkProfileIpConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param value Whether IP forwarding is enabled on this NIC. Defaults to `false`.
     */
    @JvmName("gqiicwbjymkeqhbq")
    public suspend fun ipForwarding(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipForwarding = mapped
    }

    /**
     * @param value Specifies the name of the network interface configuration.
     */
    @JvmName("cdstctyfapislykl")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the identifier for the network security group.
     */
    @JvmName("erowrergttuxjlun")
    public suspend fun networkSecurityGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkSecurityGroupId = mapped
    }

    /**
     * @param value Indicates whether network interfaces created from the network interface configuration will be the primary NIC of the VM.
     */
    @JvmName("hxheycbbebmotseb")
    public suspend fun primary(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.primary = mapped
    }

    internal fun build(): ScaleSetNetworkProfileArgs = ScaleSetNetworkProfileArgs(
        acceleratedNetworking = acceleratedNetworking,
        dnsSettings = dnsSettings,
        ipConfigurations = ipConfigurations ?: throw PulumiNullFieldException("ipConfigurations"),
        ipForwarding = ipForwarding,
        name = name ?: throw PulumiNullFieldException("name"),
        networkSecurityGroupId = networkSecurityGroupId,
        primary = primary ?: throw PulumiNullFieldException("primary"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy