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

com.pulumi.gcp.dataproc.kotlin.inputs.BatchSparkBatchArgs.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.13.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.BatchSparkBatchArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property archiveUris HCFS URIs of archives to be extracted into the working directory of each executor.
 * Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
 * @property args The arguments to pass to the driver. Do not include arguments that can be set as batch
 * properties, such as --conf, since a collision can occur that causes an incorrect batch submission.
 * @property fileUris HCFS URIs of files to be placed in the working directory of each executor.
 * @property jarFileUris HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
 * @property mainClass The name of the driver main class. The jar file that contains the class must be in the
 * classpath or specified in jarFileUris.
 * @property mainJarFileUri The HCFS URI of the jar file that contains the main class.
 */
public data class BatchSparkBatchArgs(
    public val archiveUris: Output>? = null,
    public val args: Output>? = null,
    public val fileUris: Output>? = null,
    public val jarFileUris: Output>? = null,
    public val mainClass: Output? = null,
    public val mainJarFileUri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.BatchSparkBatchArgs =
        com.pulumi.gcp.dataproc.inputs.BatchSparkBatchArgs.builder()
            .archiveUris(archiveUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .args(args?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .fileUris(fileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .jarFileUris(jarFileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .mainClass(mainClass?.applyValue({ args0 -> args0 }))
            .mainJarFileUri(mainJarFileUri?.applyValue({ args0 -> args0 })).build()
}

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

    private var args: Output>? = null

    private var fileUris: Output>? = null

    private var jarFileUris: Output>? = null

    private var mainClass: Output? = null

    private var mainJarFileUri: Output? = null

    /**
     * @param value HCFS URIs of archives to be extracted into the working directory of each executor.
     * Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
     */
    @JvmName("xcddsjhnxtymhqcj")
    public suspend fun archiveUris(`value`: Output>) {
        this.archiveUris = value
    }

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

    /**
     * @param values HCFS URIs of archives to be extracted into the working directory of each executor.
     * Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
     */
    @JvmName("saniejysfvlksndc")
    public suspend fun archiveUris(values: List>) {
        this.archiveUris = Output.all(values)
    }

    /**
     * @param value The arguments to pass to the driver. Do not include arguments that can be set as batch
     * properties, such as --conf, since a collision can occur that causes an incorrect batch submission.
     */
    @JvmName("frkmigbqggvpimlk")
    public suspend fun args(`value`: Output>) {
        this.args = value
    }

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

    /**
     * @param values The arguments to pass to the driver. Do not include arguments that can be set as batch
     * properties, such as --conf, since a collision can occur that causes an incorrect batch submission.
     */
    @JvmName("cvxummdsallrcsve")
    public suspend fun args(values: List>) {
        this.args = Output.all(values)
    }

    /**
     * @param value HCFS URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("njushbxxcjjgsxve")
    public suspend fun fileUris(`value`: Output>) {
        this.fileUris = value
    }

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

    /**
     * @param values HCFS URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("xhaomjhenanrheay")
    public suspend fun fileUris(values: List>) {
        this.fileUris = Output.all(values)
    }

    /**
     * @param value HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
     */
    @JvmName("ttavhtweexxkxttv")
    public suspend fun jarFileUris(`value`: Output>) {
        this.jarFileUris = value
    }

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

    /**
     * @param values HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
     */
    @JvmName("aceawpqxgsgnplvn")
    public suspend fun jarFileUris(values: List>) {
        this.jarFileUris = Output.all(values)
    }

    /**
     * @param value The name of the driver main class. The jar file that contains the class must be in the
     * classpath or specified in jarFileUris.
     */
    @JvmName("mkxjaikilduodhpt")
    public suspend fun mainClass(`value`: Output) {
        this.mainClass = value
    }

    /**
     * @param value The HCFS URI of the jar file that contains the main class.
     */
    @JvmName("toibnhlkrpsqxdlm")
    public suspend fun mainJarFileUri(`value`: Output) {
        this.mainJarFileUri = value
    }

    /**
     * @param value HCFS URIs of archives to be extracted into the working directory of each executor.
     * Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
     */
    @JvmName("sujmtcnenjtqoxwm")
    public suspend fun archiveUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param values HCFS URIs of archives to be extracted into the working directory of each executor.
     * Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
     */
    @JvmName("aeiftsaimfdtbvqy")
    public suspend fun archiveUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param value The arguments to pass to the driver. Do not include arguments that can be set as batch
     * properties, such as --conf, since a collision can occur that causes an incorrect batch submission.
     */
    @JvmName("xnueaxewawsiphnq")
    public suspend fun args(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param values The arguments to pass to the driver. Do not include arguments that can be set as batch
     * properties, such as --conf, since a collision can occur that causes an incorrect batch submission.
     */
    @JvmName("myqughunovckkimp")
    public suspend fun args(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param value HCFS URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("iqcqkjkpekisunhs")
    public suspend fun fileUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param values HCFS URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("dthtwvxcvbuuerht")
    public suspend fun fileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param value HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
     */
    @JvmName("fosidnposnugghct")
    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 add to the classpath of the Spark driver and tasks.
     */
    @JvmName("powonntqleqaprjl")
    public suspend fun jarFileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jarFileUris = mapped
    }

    /**
     * @param value The name of the driver main class. The jar file that contains the class must be in the
     * classpath or specified in jarFileUris.
     */
    @JvmName("boldvrlqnossjdec")
    public suspend fun mainClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainClass = mapped
    }

    /**
     * @param value The HCFS URI of the jar file that contains the main class.
     */
    @JvmName("uwjunwbbdtdkmbvi")
    public suspend fun mainJarFileUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainJarFileUri = mapped
    }

    internal fun build(): BatchSparkBatchArgs = BatchSparkBatchArgs(
        archiveUris = archiveUris,
        args = args,
        fileUris = fileUris,
        jarFileUris = jarFileUris,
        mainClass = mainClass,
        mainJarFileUri = mainJarFileUri,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy