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

com.pulumi.aws.emrcontainers.kotlin.inputs.JobTemplateJobTemplateDataJobDriverArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.emrcontainers.kotlin.inputs

import com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataJobDriverArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property sparkSqlJobDriver The job driver for job type.
 * @property sparkSubmitJobDriver The job driver parameters specified for spark submit.
 */
public data class JobTemplateJobTemplateDataJobDriverArgs(
    public val sparkSqlJobDriver: Output? =
        null,
    public val sparkSubmitJobDriver: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataJobDriverArgs = com.pulumi.aws.emrcontainers.inputs.JobTemplateJobTemplateDataJobDriverArgs.builder()
        .sparkSqlJobDriver(sparkSqlJobDriver?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .sparkSubmitJobDriver(
            sparkSubmitJobDriver?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        ).build()
}

/**
 * Builder for [JobTemplateJobTemplateDataJobDriverArgs].
 */
@PulumiTagMarker
public class JobTemplateJobTemplateDataJobDriverArgsBuilder internal constructor() {
    private var sparkSqlJobDriver: Output? =
        null

    private var sparkSubmitJobDriver:
        Output? = null

    /**
     * @param value The job driver for job type.
     */
    @JvmName("fabxvdofxualsglu")
    public suspend fun sparkSqlJobDriver(`value`: Output) {
        this.sparkSqlJobDriver = value
    }

    /**
     * @param value The job driver parameters specified for spark submit.
     */
    @JvmName("umnekjrgjtuipqki")
    public suspend fun sparkSubmitJobDriver(`value`: Output) {
        this.sparkSubmitJobDriver = value
    }

    /**
     * @param value The job driver for job type.
     */
    @JvmName("gnsqdhpufkrixsvm")
    public suspend fun sparkSqlJobDriver(`value`: JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sparkSqlJobDriver = mapped
    }

    /**
     * @param argument The job driver for job type.
     */
    @JvmName("efnhtahqokffqrip")
    public suspend fun sparkSqlJobDriver(argument: suspend JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgsBuilder.() -> Unit) {
        val toBeMapped = JobTemplateJobTemplateDataJobDriverSparkSqlJobDriverArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sparkSqlJobDriver = mapped
    }

    /**
     * @param value The job driver parameters specified for spark submit.
     */
    @JvmName("gioeyqjiqacunamd")
    public suspend fun sparkSubmitJobDriver(`value`: JobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sparkSubmitJobDriver = mapped
    }

    /**
     * @param argument The job driver parameters specified for spark submit.
     */
    @JvmName("axljwmyodahokfox")
    public suspend fun sparkSubmitJobDriver(argument: suspend JobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverArgsBuilder.() -> Unit) {
        val toBeMapped =
            JobTemplateJobTemplateDataJobDriverSparkSubmitJobDriverArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.sparkSubmitJobDriver = mapped
    }

    internal fun build(): JobTemplateJobTemplateDataJobDriverArgs =
        JobTemplateJobTemplateDataJobDriverArgs(
            sparkSqlJobDriver = sparkSqlJobDriver,
            sparkSubmitJobDriver = sparkSubmitJobDriver,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy