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

com.pulumi.gcp.edgecontainer.kotlin.inputs.ClusterControlPlaneArgs.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.edgecontainer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.edgecontainer.inputs.ClusterControlPlaneArgs.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 local Local control plane configuration.
 * Structure is documented below.
 * @property remote Remote control plane configuration.
 * Structure is documented below.
 */
public data class ClusterControlPlaneArgs(
    public val local: Output? = null,
    public val remote: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.edgecontainer.inputs.ClusterControlPlaneArgs =
        com.pulumi.gcp.edgecontainer.inputs.ClusterControlPlaneArgs.builder()
            .local(local?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .remote(remote?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ClusterControlPlaneArgs].
 */
@PulumiTagMarker
public class ClusterControlPlaneArgsBuilder internal constructor() {
    private var local: Output? = null

    private var remote: Output? = null

    /**
     * @param value Local control plane configuration.
     * Structure is documented below.
     */
    @JvmName("ptuvawrtgjoesfvv")
    public suspend fun local(`value`: Output) {
        this.local = value
    }

    /**
     * @param value Remote control plane configuration.
     * Structure is documented below.
     */
    @JvmName("msgawsfdoxpxykva")
    public suspend fun remote(`value`: Output) {
        this.remote = value
    }

    /**
     * @param value Local control plane configuration.
     * Structure is documented below.
     */
    @JvmName("fdgmgfskdewqvhsk")
    public suspend fun local(`value`: ClusterControlPlaneLocalArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.local = mapped
    }

    /**
     * @param argument Local control plane configuration.
     * Structure is documented below.
     */
    @JvmName("kukhanexjcwxppcu")
    public suspend fun local(argument: suspend ClusterControlPlaneLocalArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterControlPlaneLocalArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.local = mapped
    }

    /**
     * @param value Remote control plane configuration.
     * Structure is documented below.
     */
    @JvmName("owdtdponqfxrpkjc")
    public suspend fun remote(`value`: ClusterControlPlaneRemoteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.remote = mapped
    }

    /**
     * @param argument Remote control plane configuration.
     * Structure is documented below.
     */
    @JvmName("wouoovxdjmlfgpie")
    public suspend fun remote(argument: suspend ClusterControlPlaneRemoteArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterControlPlaneRemoteArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.remote = mapped
    }

    internal fun build(): ClusterControlPlaneArgs = ClusterControlPlaneArgs(
        local = local,
        remote = remote,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy