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

com.pulumi.aws.emr.kotlin.inputs.ClusterStepHadoopJarStepArgs.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.emr.kotlin.inputs

import com.pulumi.aws.emr.inputs.ClusterStepHadoopJarStepArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 args List of command line arguments passed to the JAR file's main function when executed.
 * @property jar Path to a JAR file run during the step.
 * @property mainClass Name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
 * @property properties Key-Value map of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
 */
public data class ClusterStepHadoopJarStepArgs(
    public val args: Output>? = null,
    public val jar: Output,
    public val mainClass: Output? = null,
    public val properties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.emr.inputs.ClusterStepHadoopJarStepArgs =
        com.pulumi.aws.emr.inputs.ClusterStepHadoopJarStepArgs.builder()
            .args(args?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .jar(jar.applyValue({ args0 -> args0 }))
            .mainClass(mainClass?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var jar: Output? = null

    private var mainClass: Output? = null

    private var properties: Output>? = null

    /**
     * @param value List of command line arguments passed to the JAR file's main function when executed.
     */
    @JvmName("bvxgsnhavhekxeoe")
    public suspend fun args(`value`: Output>) {
        this.args = value
    }

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

    /**
     * @param values List of command line arguments passed to the JAR file's main function when executed.
     */
    @JvmName("tvujhxyapxqsburd")
    public suspend fun args(values: List>) {
        this.args = Output.all(values)
    }

    /**
     * @param value Path to a JAR file run during the step.
     */
    @JvmName("cqruregsxikwskdh")
    public suspend fun jar(`value`: Output) {
        this.jar = value
    }

    /**
     * @param value Name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
     */
    @JvmName("otctiljkaegfvvww")
    public suspend fun mainClass(`value`: Output) {
        this.mainClass = value
    }

    /**
     * @param value Key-Value map of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
     */
    @JvmName("qspkgcbpsvwqymxr")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value List of command line arguments passed to the JAR file's main function when executed.
     */
    @JvmName("waivgkftirllcohm")
    public suspend fun args(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param values List of command line arguments passed to the JAR file's main function when executed.
     */
    @JvmName("fovdhycgqmoytfqm")
    public suspend fun args(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param value Path to a JAR file run during the step.
     */
    @JvmName("mlhdghhdutwxhnpm")
    public suspend fun jar(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jar = mapped
    }

    /**
     * @param value Name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
     */
    @JvmName("cdvoprrjqrdenavw")
    public suspend fun mainClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainClass = mapped
    }

    /**
     * @param value Key-Value map of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
     */
    @JvmName("xrcjetjgklfuuehw")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values Key-Value map of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
     */
    @JvmName("qmhmndnkycuhumsb")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    internal fun build(): ClusterStepHadoopJarStepArgs = ClusterStepHadoopJarStepArgs(
        args = args,
        jar = jar ?: throw PulumiNullFieldException("jar"),
        mainClass = mainClass,
        properties = properties,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy