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

com.pulumi.azurenative.compute.kotlin.inputs.VirtualMachineScaleSetIPConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.VirtualMachineScaleSetIPConfigurationArgs.builder
import com.pulumi.azurenative.compute.kotlin.enums.IPVersion
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.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

/**
 * Describes a virtual machine scale set network profile's IP configuration.
 * @property applicationGatewayBackendAddressPools Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
 * @property applicationSecurityGroups Specifies an array of references to application security group.
 * @property loadBalancerBackendAddressPools Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
 * @property loadBalancerInboundNatPools Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
 * @property name The IP configuration name.
 * @property primary Specifies the primary network interface in case the virtual machine has more than 1 network interface.
 * @property privateIPAddressVersion Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'.
 * @property publicIPAddressConfiguration The publicIPAddressConfiguration.
 * @property subnet Specifies the identifier of the subnet.
 */
public data class VirtualMachineScaleSetIPConfigurationArgs(
    public val applicationGatewayBackendAddressPools: Output>? = null,
    public val applicationSecurityGroups: Output>? = null,
    public val loadBalancerBackendAddressPools: Output>? = null,
    public val loadBalancerInboundNatPools: Output>? = null,
    public val name: Output,
    public val primary: Output? = null,
    public val privateIPAddressVersion: Output>? = null,
    public val publicIPAddressConfiguration: Output? = null,
    public val subnet: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.VirtualMachineScaleSetIPConfigurationArgs =
        com.pulumi.azurenative.compute.inputs.VirtualMachineScaleSetIPConfigurationArgs.builder()
            .applicationGatewayBackendAddressPools(
                applicationGatewayBackendAddressPools?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .applicationSecurityGroups(
                applicationSecurityGroups?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .loadBalancerBackendAddressPools(
                loadBalancerBackendAddressPools?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .loadBalancerInboundNatPools(
                loadBalancerInboundNatPools?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .name(name.applyValue({ args0 -> args0 }))
            .primary(primary?.applyValue({ args0 -> args0 }))
            .privateIPAddressVersion(
                privateIPAddressVersion?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .publicIPAddressConfiguration(
                publicIPAddressConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .subnet(subnet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var applicationSecurityGroups: Output>? = null

    private var loadBalancerBackendAddressPools: Output>? = null

    private var loadBalancerInboundNatPools: Output>? = null

    private var name: Output? = null

    private var primary: Output? = null

    private var privateIPAddressVersion: Output>? = null

    private var publicIPAddressConfiguration:
        Output? = null

    private var subnet: Output? = null

    /**
     * @param value Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
     */
    @JvmName("ctxvuykrneeacfoc")
    public suspend fun applicationGatewayBackendAddressPools(`value`: Output>) {
        this.applicationGatewayBackendAddressPools = value
    }

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

    /**
     * @param values Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
     */
    @JvmName("uflwhlfsbcectegg")
    public suspend fun applicationGatewayBackendAddressPools(values: List>) {
        this.applicationGatewayBackendAddressPools = Output.all(values)
    }

    /**
     * @param value Specifies an array of references to application security group.
     */
    @JvmName("fveacucmtpsabthw")
    public suspend fun applicationSecurityGroups(`value`: Output>) {
        this.applicationSecurityGroups = value
    }

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

    /**
     * @param values Specifies an array of references to application security group.
     */
    @JvmName("rrdgpebcxiculton")
    public suspend fun applicationSecurityGroups(values: List>) {
        this.applicationSecurityGroups = Output.all(values)
    }

    /**
     * @param value Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("noavmhyoulceexqm")
    public suspend fun loadBalancerBackendAddressPools(`value`: Output>) {
        this.loadBalancerBackendAddressPools = value
    }

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

    /**
     * @param values Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("qryvstjowlyotayi")
    public suspend fun loadBalancerBackendAddressPools(values: List>) {
        this.loadBalancerBackendAddressPools = Output.all(values)
    }

    /**
     * @param value Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("lvhiomklfxhywsve")
    public suspend fun loadBalancerInboundNatPools(`value`: Output>) {
        this.loadBalancerInboundNatPools = value
    }

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

    /**
     * @param values Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("isbvthjlcicykdij")
    public suspend fun loadBalancerInboundNatPools(values: List>) {
        this.loadBalancerInboundNatPools = Output.all(values)
    }

    /**
     * @param value The IP configuration name.
     */
    @JvmName("iqrxedgxponarmwy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'.
     */
    @JvmName("teafylltnnscdgab")
    public suspend fun privateIPAddressVersion(`value`: Output>) {
        this.privateIPAddressVersion = value
    }

    /**
     * @param value The publicIPAddressConfiguration.
     */
    @JvmName("btbsvhuswhmgpfbr")
    public suspend fun publicIPAddressConfiguration(`value`: Output) {
        this.publicIPAddressConfiguration = value
    }

    /**
     * @param value Specifies the identifier of the subnet.
     */
    @JvmName("wsfslfyoidqhxrrm")
    public suspend fun subnet(`value`: Output) {
        this.subnet = value
    }

    /**
     * @param value Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
     */
    @JvmName("vyqopuuypfxxgxyc")
    public suspend fun applicationGatewayBackendAddressPools(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationGatewayBackendAddressPools = mapped
    }

    /**
     * @param argument Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
     */
    @JvmName("cdqywsmklcashilw")
    public suspend fun applicationGatewayBackendAddressPools(argument: List Unit>) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.applicationGatewayBackendAddressPools = mapped
    }

    /**
     * @param argument Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
     */
    @JvmName("lociwhqemajjfbye")
    public suspend fun applicationGatewayBackendAddressPools(vararg argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.applicationGatewayBackendAddressPools = mapped
    }

    /**
     * @param argument Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
     */
    @JvmName("sxxiylrotgthvakk")
    public suspend fun applicationGatewayBackendAddressPools(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SubResourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.applicationGatewayBackendAddressPools = mapped
    }

    /**
     * @param values Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.
     */
    @JvmName("qxwhvloibvnmblrs")
    public suspend fun applicationGatewayBackendAddressPools(vararg values: SubResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationGatewayBackendAddressPools = mapped
    }

    /**
     * @param value Specifies an array of references to application security group.
     */
    @JvmName("rdyjbessofthnpfb")
    public suspend fun applicationSecurityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationSecurityGroups = mapped
    }

    /**
     * @param argument Specifies an array of references to application security group.
     */
    @JvmName("bgtcbamwmhvmufec")
    public suspend fun applicationSecurityGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.applicationSecurityGroups = mapped
    }

    /**
     * @param argument Specifies an array of references to application security group.
     */
    @JvmName("wfaemsymljpaimhv")
    public suspend fun applicationSecurityGroups(vararg argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.applicationSecurityGroups = mapped
    }

    /**
     * @param argument Specifies an array of references to application security group.
     */
    @JvmName("aiyhlhmeadhvgwfk")
    public suspend fun applicationSecurityGroups(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SubResourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.applicationSecurityGroups = mapped
    }

    /**
     * @param values Specifies an array of references to application security group.
     */
    @JvmName("dgtkgdsrhaatgphk")
    public suspend fun applicationSecurityGroups(vararg values: SubResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationSecurityGroups = mapped
    }

    /**
     * @param value Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("logjspuutrnaisqm")
    public suspend fun loadBalancerBackendAddressPools(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadBalancerBackendAddressPools = mapped
    }

    /**
     * @param argument Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("pfxrxhgtrobxppsh")
    public suspend fun loadBalancerBackendAddressPools(argument: List Unit>) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.loadBalancerBackendAddressPools = mapped
    }

    /**
     * @param argument Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("ebndqacusnhwgfge")
    public suspend fun loadBalancerBackendAddressPools(vararg argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.loadBalancerBackendAddressPools = mapped
    }

    /**
     * @param argument Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("gtcfvvucqsfldqpd")
    public suspend fun loadBalancerBackendAddressPools(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SubResourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.loadBalancerBackendAddressPools = mapped
    }

    /**
     * @param values Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("ggkeufnjkwigcufp")
    public suspend fun loadBalancerBackendAddressPools(vararg values: SubResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.loadBalancerBackendAddressPools = mapped
    }

    /**
     * @param value Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("qnhjyqyvqpdgcvst")
    public suspend fun loadBalancerInboundNatPools(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadBalancerInboundNatPools = mapped
    }

    /**
     * @param argument Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("ntfabwahunemoise")
    public suspend fun loadBalancerInboundNatPools(argument: List Unit>) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.loadBalancerInboundNatPools = mapped
    }

    /**
     * @param argument Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("qogmeysgctuyluaw")
    public suspend fun loadBalancerInboundNatPools(vararg argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { SubResourceArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.loadBalancerInboundNatPools = mapped
    }

    /**
     * @param argument Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("pfdlfedxsbuqlpwy")
    public suspend fun loadBalancerInboundNatPools(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SubResourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.loadBalancerInboundNatPools = mapped
    }

    /**
     * @param values Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.
     */
    @JvmName("yrkdcqxmwkibgjlw")
    public suspend fun loadBalancerInboundNatPools(vararg values: SubResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.loadBalancerInboundNatPools = mapped
    }

    /**
     * @param value The IP configuration name.
     */
    @JvmName("wvdhpwdobaeqafoo")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

    /**
     * @param value Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'.
     */
    @JvmName("qcktpfevvtfvejog")
    public suspend fun privateIPAddressVersion(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIPAddressVersion = mapped
    }

    /**
     * @param value Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'.
     */
    @JvmName("guylddmgkoppwogr")
    public fun privateIPAddressVersion(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateIPAddressVersion = mapped
    }

    /**
     * @param value Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'.
     */
    @JvmName("worjlufrqtpodksp")
    public fun privateIPAddressVersion(`value`: IPVersion) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateIPAddressVersion = mapped
    }

    /**
     * @param value The publicIPAddressConfiguration.
     */
    @JvmName("mfqatuqnjcxafgfm")
    public suspend fun publicIPAddressConfiguration(`value`: VirtualMachineScaleSetPublicIPAddressConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIPAddressConfiguration = mapped
    }

    /**
     * @param argument The publicIPAddressConfiguration.
     */
    @JvmName("twcslyoshnkxrcmw")
    public suspend fun publicIPAddressConfiguration(argument: suspend VirtualMachineScaleSetPublicIPAddressConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualMachineScaleSetPublicIPAddressConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.publicIPAddressConfiguration = mapped
    }

    /**
     * @param value Specifies the identifier of the subnet.
     */
    @JvmName("yfsnynjivquuapyo")
    public suspend fun subnet(`value`: ApiEntityReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnet = mapped
    }

    /**
     * @param argument Specifies the identifier of the subnet.
     */
    @JvmName("esqxtvcposnsydyj")
    public suspend fun subnet(argument: suspend ApiEntityReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = ApiEntityReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.subnet = mapped
    }

    internal fun build(): VirtualMachineScaleSetIPConfigurationArgs =
        VirtualMachineScaleSetIPConfigurationArgs(
            applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools,
            applicationSecurityGroups = applicationSecurityGroups,
            loadBalancerBackendAddressPools = loadBalancerBackendAddressPools,
            loadBalancerInboundNatPools = loadBalancerInboundNatPools,
            name = name ?: throw PulumiNullFieldException("name"),
            primary = primary,
            privateIPAddressVersion = privateIPAddressVersion,
            publicIPAddressConfiguration = publicIPAddressConfiguration,
            subnet = subnet,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy