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

com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareClusterLoadBalancerMetalLbConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.VMwareClusterLoadBalancerMetalLbConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property addressPools AddressPools is a list of non-overlapping IP pools used by load balancer
 * typed services. All addresses must be routable to load balancer nodes.
 * IngressVIP must be included in the pools.
 * Structure is documented below.
 */
public data class VMwareClusterLoadBalancerMetalLbConfigArgs(
    public val addressPools: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareClusterLoadBalancerMetalLbConfigArgs = com.pulumi.gcp.gkeonprem.inputs.VMwareClusterLoadBalancerMetalLbConfigArgs.builder()
        .addressPools(
            addressPools.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

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

    /**
     * @param value AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("twvfhmoghrbcygav")
    public suspend fun addressPools(`value`: Output>) {
        this.addressPools = value
    }

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

    /**
     * @param values AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("dubhfbkmafeaygai")
    public suspend fun addressPools(values: List>) {
        this.addressPools = Output.all(values)
    }

    /**
     * @param value AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("nodhxollwmbiiwcb")
    public suspend fun addressPools(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressPools = mapped
    }

    /**
     * @param argument AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("gcegjrskwvgyhoek")
    public suspend fun addressPools(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.addressPools = mapped
    }

    /**
     * @param argument AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("olljtufsyoksyvyb")
    public suspend fun addressPools(vararg argument: suspend VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.addressPools = mapped
    }

    /**
     * @param argument AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("itxastsgnaniksla")
    public suspend fun addressPools(argument: suspend VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.addressPools = mapped
    }

    /**
     * @param values AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("gwibhvpjoumdybom")
    public suspend fun addressPools(vararg values: VMwareClusterLoadBalancerMetalLbConfigAddressPoolArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressPools = mapped
    }

    internal fun build(): VMwareClusterLoadBalancerMetalLbConfigArgs =
        VMwareClusterLoadBalancerMetalLbConfigArgs(
            addressPools = addressPools ?: throw PulumiNullFieldException("addressPools"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy