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

com.pulumi.gcp.dataproc.kotlin.inputs.GdcSparkApplicationSparkRApplicationConfigArgs.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.GdcSparkApplicationSparkRApplicationConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
 * @property fileUris HCFS URIs of files to be placed in the working directory of each executor. Useful for naively parallel tasks.
 * @property mainRFileUri The HCFS URI of the main R file to use as the driver. Must be a .R file.
 */
public data class GdcSparkApplicationSparkRApplicationConfigArgs(
    public val archiveUris: Output>? = null,
    public val args: Output>? = null,
    public val fileUris: Output>? = null,
    public val mainRFileUri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.GdcSparkApplicationSparkRApplicationConfigArgs =
        com.pulumi.gcp.dataproc.inputs.GdcSparkApplicationSparkRApplicationConfigArgs.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 }) }))
            .mainRFileUri(mainRFileUri.applyValue({ args0 -> args0 })).build()
}

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

    private var args: Output>? = null

    private var fileUris: Output>? = null

    private var mainRFileUri: 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("ipcfbckeynbntlst")
    public suspend fun archiveUris(`value`: Output>) {
        this.archiveUris = value
    }

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

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

    @JvmName("soxfmctppevbqfal")
    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, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
     */
    @JvmName("ickxwvayoelhmabh")
    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. Useful for naively parallel tasks.
     */
    @JvmName("ljcgkhxvbttmyxmo")
    public suspend fun fileUris(`value`: Output>) {
        this.fileUris = value
    }

    @JvmName("tiimjfpguvucdygl")
    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. Useful for naively parallel tasks.
     */
    @JvmName("oykrxanogwndwdlb")
    public suspend fun fileUris(values: List>) {
        this.fileUris = Output.all(values)
    }

    /**
     * @param value The HCFS URI of the main R file to use as the driver. Must be a .R file.
     */
    @JvmName("dyijpoggrdlhtxvr")
    public suspend fun mainRFileUri(`value`: Output) {
        this.mainRFileUri = 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("dsqntmbrlqysekqe")
    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("qefsudaixrrulqww")
    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, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
     */
    @JvmName("ucqinytfuofeknft")
    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, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
     */
    @JvmName("gpamqowpxfegcfsp")
    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. Useful for naively parallel tasks.
     */
    @JvmName("pytbdvhtieqqvuup")
    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. Useful for naively parallel tasks.
     */
    @JvmName("adaadgtdqstkffow")
    public suspend fun fileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param value The HCFS URI of the main R file to use as the driver. Must be a .R file.
     */
    @JvmName("yofvgeixpqjtjmcf")
    public suspend fun mainRFileUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mainRFileUri = mapped
    }

    internal fun build(): GdcSparkApplicationSparkRApplicationConfigArgs =
        GdcSparkApplicationSparkRApplicationConfigArgs(
            archiveUris = archiveUris,
            args = args,
            fileUris = fileUris,
            mainRFileUri = mainRFileUri ?: throw PulumiNullFieldException("mainRFileUri"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy