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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterLoadBalancerArgs.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.12.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.BareMetalAdminClusterLoadBalancerArgs.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.jvm.JvmName

/**
 *
 * @property manualLbConfig A nested object resource
 * Structure is documented below.
 * @property portConfig Specifies the load balancer ports.
 * Structure is documented below.
 * @property vipConfig Specified the Bare Metal Load Balancer Config
 * Structure is documented below.
 */
public data class BareMetalAdminClusterLoadBalancerArgs(
    public val manualLbConfig: Output? = null,
    public val portConfig: Output,
    public val vipConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerArgs.builder()
            .manualLbConfig(manualLbConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .portConfig(portConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vipConfig(vipConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BareMetalAdminClusterLoadBalancerArgs].
 */
@PulumiTagMarker
public class BareMetalAdminClusterLoadBalancerArgsBuilder internal constructor() {
    private var manualLbConfig: Output? = null

    private var portConfig: Output? = null

    private var vipConfig: Output? = null

    /**
     * @param value A nested object resource
     * Structure is documented below.
     */
    @JvmName("oigpiirapkdmqbki")
    public suspend fun manualLbConfig(`value`: Output) {
        this.manualLbConfig = value
    }

    /**
     * @param value Specifies the load balancer ports.
     * Structure is documented below.
     */
    @JvmName("lopbqpbgjciodlwf")
    public suspend fun portConfig(`value`: Output) {
        this.portConfig = value
    }

    /**
     * @param value Specified the Bare Metal Load Balancer Config
     * Structure is documented below.
     */
    @JvmName("mqbvcafiqgxnsyax")
    public suspend fun vipConfig(`value`: Output) {
        this.vipConfig = value
    }

    /**
     * @param value A nested object resource
     * Structure is documented below.
     */
    @JvmName("cpwrdeklulmkfvgk")
    public suspend fun manualLbConfig(`value`: BareMetalAdminClusterLoadBalancerManualLbConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manualLbConfig = mapped
    }

    /**
     * @param argument A nested object resource
     * Structure is documented below.
     */
    @JvmName("ontlpfppjeohrdvj")
    public suspend fun manualLbConfig(argument: suspend BareMetalAdminClusterLoadBalancerManualLbConfigArgsBuilder.() -> Unit) {
        val toBeMapped = BareMetalAdminClusterLoadBalancerManualLbConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.manualLbConfig = mapped
    }

    /**
     * @param value Specifies the load balancer ports.
     * Structure is documented below.
     */
    @JvmName("nxxqskasfelhuurw")
    public suspend fun portConfig(`value`: BareMetalAdminClusterLoadBalancerPortConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.portConfig = mapped
    }

    /**
     * @param argument Specifies the load balancer ports.
     * Structure is documented below.
     */
    @JvmName("exjnumqsekfpygvg")
    public suspend fun portConfig(argument: suspend BareMetalAdminClusterLoadBalancerPortConfigArgsBuilder.() -> Unit) {
        val toBeMapped = BareMetalAdminClusterLoadBalancerPortConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.portConfig = mapped
    }

    /**
     * @param value Specified the Bare Metal Load Balancer Config
     * Structure is documented below.
     */
    @JvmName("edesswhndemfhtaw")
    public suspend fun vipConfig(`value`: BareMetalAdminClusterLoadBalancerVipConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vipConfig = mapped
    }

    /**
     * @param argument Specified the Bare Metal Load Balancer Config
     * Structure is documented below.
     */
    @JvmName("lomxcxelxjejbede")
    public suspend fun vipConfig(argument: suspend BareMetalAdminClusterLoadBalancerVipConfigArgsBuilder.() -> Unit) {
        val toBeMapped = BareMetalAdminClusterLoadBalancerVipConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.vipConfig = mapped
    }

    internal fun build(): BareMetalAdminClusterLoadBalancerArgs =
        BareMetalAdminClusterLoadBalancerArgs(
            manualLbConfig = manualLbConfig,
            portConfig = portConfig ?: throw PulumiNullFieldException("portConfig"),
            vipConfig = vipConfig ?: throw PulumiNullFieldException("vipConfig"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy