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

com.pulumi.gcp.dataproc.kotlin.inputs.BatchSparkSqlBatchArgs.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.20.1.0
Show newest version
@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.BatchSparkSqlBatchArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
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 Spark SQL queries to execute.
 * @property queryVariables Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";).
 */
public data class BatchSparkSqlBatchArgs(
    public val jarFileUris: Output>? = null,
    public val queryFileUri: Output? = null,
    public val queryVariables: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.BatchSparkSqlBatchArgs =
        com.pulumi.gcp.dataproc.inputs.BatchSparkSqlBatchArgs.builder()
            .jarFileUris(jarFileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .queryFileUri(queryFileUri?.applyValue({ args0 -> args0 }))
            .queryVariables(
                queryVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var queryFileUri: Output? = null

    private var queryVariables: Output>? = null

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

    @JvmName("kmtepxiuowtgcjjj")
    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("yqkpfikkdyfcpdgo")
    public suspend fun jarFileUris(values: List>) {
        this.jarFileUris = Output.all(values)
    }

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

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

    /**
     * @param value HCFS URIs of jar files to be added to the Spark CLASSPATH.
     */
    @JvmName("anmrdliiasuifwcn")
    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("pkpgpliqudxtrqfs")
    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 Spark SQL queries to execute.
     */
    @JvmName("enaieirlrypndqlw")
    public suspend fun queryFileUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryFileUri = mapped
    }

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

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

    internal fun build(): BatchSparkSqlBatchArgs = BatchSparkSqlBatchArgs(
        jarFileUris = jarFileUris,
        queryFileUri = queryFileUri,
        queryVariables = queryVariables,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy