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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgs.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.BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property nodePoolConfig The generic configuration for a node pool running a load balancer.
 * Structure is documented below.
 */
public data class BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgs(
    public val nodePoolConfig: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgs.builder()
            .nodePoolConfig(
                nodePoolConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgs].
 */
@PulumiTagMarker
public class BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgsBuilder internal constructor() {
    private var nodePoolConfig:
        Output? =
        null

    /**
     * @param value The generic configuration for a node pool running a load balancer.
     * Structure is documented below.
     */
    @JvmName("kgmylwxrefvlhqic")
    public suspend fun nodePoolConfig(`value`: Output) {
        this.nodePoolConfig = value
    }

    /**
     * @param value The generic configuration for a node pool running a load balancer.
     * Structure is documented below.
     */
    @JvmName("hcysexunlhxriosw")
    public suspend fun nodePoolConfig(`value`: BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigNodePoolConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodePoolConfig = mapped
    }

    /**
     * @param argument The generic configuration for a node pool running a load balancer.
     * Structure is documented below.
     */
    @JvmName("ckqcdbadcfqxhquw")
    public suspend fun nodePoolConfig(argument: suspend BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigNodePoolConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigNodePoolConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.nodePoolConfig = mapped
    }

    internal fun build(): BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgs =
        BareMetalClusterLoadBalancerMetalLbConfigLoadBalancerNodePoolConfigArgs(
            nodePoolConfig = nodePoolConfig,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy