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

com.pulumi.gcp.dataproc.kotlin.inputs.GdcSparkApplicationSparkSqlApplicationConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.GdcSparkApplicationSparkSqlApplicationConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property jarFileUris HCFS URIs of jar files to be added to the Spark CLASSPATH.
 * @property queryFileUri The HCFS URI of the script that contains SQL queries.
 * @property queryList Represents a list of queries.
 * Structure is documented below.
 * @property scriptVariables Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
 */
public data class GdcSparkApplicationSparkSqlApplicationConfigArgs(
    public val jarFileUris: Output>? = null,
    public val queryFileUri: Output? = null,
    public val queryList: Output? = null,
    public val scriptVariables: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.GdcSparkApplicationSparkSqlApplicationConfigArgs =
        com.pulumi.gcp.dataproc.inputs.GdcSparkApplicationSparkSqlApplicationConfigArgs.builder()
            .jarFileUris(jarFileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .queryFileUri(queryFileUri?.applyValue({ args0 -> args0 }))
            .queryList(queryList?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .scriptVariables(
                scriptVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var queryFileUri: Output? = null

    private var queryList: Output? = null

    private var scriptVariables: Output>? = null

    /**
     * @param value HCFS URIs of jar files to be added to the Spark CLASSPATH.
     */
    @JvmName("cdvoaarbviuqbaki")
    public suspend fun jarFileUris(`value`: Output>) {
        this.jarFileUris = value
    }

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

    /**
     * @param values HCFS URIs of jar files to be added to the Spark CLASSPATH.
     */
    @JvmName("hpxyigwygfqtpvug")
    public suspend fun jarFileUris(values: List>) {
        this.jarFileUris = Output.all(values)
    }

    /**
     * @param value The HCFS URI of the script that contains SQL queries.
     */
    @JvmName("ubtvgmbxhbhymavf")
    public suspend fun queryFileUri(`value`: Output) {
        this.queryFileUri = value
    }

    /**
     * @param value Represents a list of queries.
     * Structure is documented below.
     */
    @JvmName("kouwvledwwoncoia")
    public suspend fun queryList(`value`: Output) {
        this.queryList = value
    }

    /**
     * @param value Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
     */
    @JvmName("gocepuytfbbheodl")
    public suspend fun scriptVariables(`value`: Output>) {
        this.scriptVariables = value
    }

    /**
     * @param value HCFS URIs of jar files to be added to the Spark CLASSPATH.
     */
    @JvmName("tiewyojqbnjstnnu")
    public suspend fun jarFileUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jarFileUris = mapped
    }

    /**
     * @param values HCFS URIs of jar files to be added to the Spark CLASSPATH.
     */
    @JvmName("lysmluaufvsppydw")
    public suspend fun jarFileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jarFileUris = mapped
    }

    /**
     * @param value The HCFS URI of the script that contains SQL queries.
     */
    @JvmName("xxpbdyhylekqlqxt")
    public suspend fun queryFileUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryFileUri = mapped
    }

    /**
     * @param value Represents a list of queries.
     * Structure is documented below.
     */
    @JvmName("cchxdiirlhwbbdys")
    public suspend fun queryList(`value`: GdcSparkApplicationSparkSqlApplicationConfigQueryListArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryList = mapped
    }

    /**
     * @param argument Represents a list of queries.
     * Structure is documented below.
     */
    @JvmName("kxtkpgjieqbfafts")
    public suspend fun queryList(argument: suspend GdcSparkApplicationSparkSqlApplicationConfigQueryListArgsBuilder.() -> Unit) {
        val toBeMapped =
            GdcSparkApplicationSparkSqlApplicationConfigQueryListArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.queryList = mapped
    }

    /**
     * @param value Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
     */
    @JvmName("ktgtsvyecriibtaf")
    public suspend fun scriptVariables(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scriptVariables = mapped
    }

    /**
     * @param values Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
     */
    @JvmName("dffnppipsllxbdqa")
    public fun scriptVariables(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scriptVariables = mapped
    }

    internal fun build(): GdcSparkApplicationSparkSqlApplicationConfigArgs =
        GdcSparkApplicationSparkSqlApplicationConfigArgs(
            jarFileUris = jarFileUris,
            queryFileUri = queryFileUri,
            queryList = queryList,
            scriptVariables = scriptVariables,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy