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

com.pulumi.gcp.bigquery.kotlin.inputs.ConnectionSparkArgs.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.bigquery.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.ConnectionSparkArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property metastoreServiceConfig Dataproc Metastore Service configuration for the connection.
 * Structure is documented below.
 * @property serviceAccountId (Output)
 * The account ID of the service created for the purpose of this connection.
 * @property sparkHistoryServerConfig Spark History Server configuration for the connection.
 * Structure is documented below.
 */
public data class ConnectionSparkArgs(
    public val metastoreServiceConfig: Output? = null,
    public val serviceAccountId: Output? = null,
    public val sparkHistoryServerConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.ConnectionSparkArgs =
        com.pulumi.gcp.bigquery.inputs.ConnectionSparkArgs.builder()
            .metastoreServiceConfig(
                metastoreServiceConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .serviceAccountId(serviceAccountId?.applyValue({ args0 -> args0 }))
            .sparkHistoryServerConfig(
                sparkHistoryServerConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ConnectionSparkArgs].
 */
@PulumiTagMarker
public class ConnectionSparkArgsBuilder internal constructor() {
    private var metastoreServiceConfig: Output? = null

    private var serviceAccountId: Output? = null

    private var sparkHistoryServerConfig: Output? = null

    /**
     * @param value Dataproc Metastore Service configuration for the connection.
     * Structure is documented below.
     */
    @JvmName("vjxnkuemjlheaqdf")
    public suspend fun metastoreServiceConfig(`value`: Output) {
        this.metastoreServiceConfig = value
    }

    /**
     * @param value (Output)
     * The account ID of the service created for the purpose of this connection.
     */
    @JvmName("shibtyfahlsmmtju")
    public suspend fun serviceAccountId(`value`: Output) {
        this.serviceAccountId = value
    }

    /**
     * @param value Spark History Server configuration for the connection.
     * Structure is documented below.
     */
    @JvmName("jfoumxrmuoryqeff")
    public suspend fun sparkHistoryServerConfig(`value`: Output) {
        this.sparkHistoryServerConfig = value
    }

    /**
     * @param value Dataproc Metastore Service configuration for the connection.
     * Structure is documented below.
     */
    @JvmName("jugpiuiubhbgmigq")
    public suspend fun metastoreServiceConfig(`value`: ConnectionSparkMetastoreServiceConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metastoreServiceConfig = mapped
    }

    /**
     * @param argument Dataproc Metastore Service configuration for the connection.
     * Structure is documented below.
     */
    @JvmName("hpbrblddjxiqutkt")
    public suspend fun metastoreServiceConfig(argument: suspend ConnectionSparkMetastoreServiceConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionSparkMetastoreServiceConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.metastoreServiceConfig = mapped
    }

    /**
     * @param value (Output)
     * The account ID of the service created for the purpose of this connection.
     */
    @JvmName("coikbckcbayjhndy")
    public suspend fun serviceAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccountId = mapped
    }

    /**
     * @param value Spark History Server configuration for the connection.
     * Structure is documented below.
     */
    @JvmName("tkvhlosdslmbljjg")
    public suspend fun sparkHistoryServerConfig(`value`: ConnectionSparkSparkHistoryServerConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sparkHistoryServerConfig = mapped
    }

    /**
     * @param argument Spark History Server configuration for the connection.
     * Structure is documented below.
     */
    @JvmName("hfgeujnemwplebdv")
    public suspend fun sparkHistoryServerConfig(argument: suspend ConnectionSparkSparkHistoryServerConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionSparkSparkHistoryServerConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sparkHistoryServerConfig = mapped
    }

    internal fun build(): ConnectionSparkArgs = ConnectionSparkArgs(
        metastoreServiceConfig = metastoreServiceConfig,
        serviceAccountId = serviceAccountId,
        sparkHistoryServerConfig = sparkHistoryServerConfig,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy