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

com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplateJobPigJobArgs.kt Maven / Gradle / Ivy

@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.WorkflowTemplateJobPigJobArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property continueOnFailure Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
 * @property jarFileUris HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
 * @property loggingConfig The runtime log config for job execution.
 * @property properties A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
 * @property queryFileUri The HCFS URI of the script that contains the Pig queries.
 * @property queryList A list of queries.
 * @property scriptVariables Mapping of query variable names to values (equivalent to the Pig command: `name=`).
 * */
 */
public data class WorkflowTemplateJobPigJobArgs(
    public val continueOnFailure: Output? = null,
    public val jarFileUris: Output>? = null,
    public val loggingConfig: Output? = null,
    public val properties: Output>? = null,
    public val queryFileUri: Output? = null,
    public val queryList: Output? = null,
    public val scriptVariables: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplateJobPigJobArgs =
        com.pulumi.gcp.dataproc.inputs.WorkflowTemplateJobPigJobArgs.builder()
            .continueOnFailure(continueOnFailure?.applyValue({ args0 -> args0 }))
            .jarFileUris(jarFileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .loggingConfig(loggingConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .queryFileUri(queryFileUri?.applyValue({ args0 -> args0 }))
            .queryList(queryList?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .scriptVariables(
                scriptVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [WorkflowTemplateJobPigJobArgs].
 */
@PulumiTagMarker
public class WorkflowTemplateJobPigJobArgsBuilder internal constructor() {
    private var continueOnFailure: Output? = null

    private var jarFileUris: Output>? = null

    private var loggingConfig: Output? = null

    private var properties: Output>? = null

    private var queryFileUri: Output? = null

    private var queryList: Output? = null

    private var scriptVariables: Output>? = null

    /**
     * @param value Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
     */
    @JvmName("vgasgawiktndqpye")
    public suspend fun continueOnFailure(`value`: Output) {
        this.continueOnFailure = value
    }

    /**
     * @param value HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
     */
    @JvmName("xovhfjlyhdqtbtan")
    public suspend fun jarFileUris(`value`: Output>) {
        this.jarFileUris = value
    }

    @JvmName("wjkjuggkbtkmagtk")
    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 Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
     */
    @JvmName("rybaybtywunubgsb")
    public suspend fun jarFileUris(values: List>) {
        this.jarFileUris = Output.all(values)
    }

    /**
     * @param value The runtime log config for job execution.
     */
    @JvmName("llmpwpaxemsrmcaa")
    public suspend fun loggingConfig(`value`: Output) {
        this.loggingConfig = value
    }

    /**
     * @param value A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
     * */
     */
    @JvmName("fhxoislpeahkbwfa")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

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

    /**
     * @param value A list of queries.
     */
    @JvmName("qmljynxuknkapoax")
    public suspend fun queryList(`value`: Output) {
        this.queryList = value
    }

    /**
     * @param value Mapping of query variable names to values (equivalent to the Pig command: `name=`).
     */
    @JvmName("rvmluqjrrpxldote")
    public suspend fun scriptVariables(`value`: Output>) {
        this.scriptVariables = value
    }

    /**
     * @param value Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
     */
    @JvmName("eqlmhykxincagmoy")
    public suspend fun continueOnFailure(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.continueOnFailure = mapped
    }

    /**
     * @param value HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
     */
    @JvmName("ohsqydwaahkodtrc")
    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 Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
     */
    @JvmName("dblssqyfoxrmhcbt")
    public suspend fun jarFileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jarFileUris = mapped
    }

    /**
     * @param value The runtime log config for job execution.
     */
    @JvmName("qrhclknwmemkvjhg")
    public suspend fun loggingConfig(`value`: WorkflowTemplateJobPigJobLoggingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loggingConfig = mapped
    }

    /**
     * @param argument The runtime log config for job execution.
     */
    @JvmName("bbknvoecipyjinok")
    public suspend fun loggingConfig(argument: suspend WorkflowTemplateJobPigJobLoggingConfigArgsBuilder.() -> Unit) {
        val toBeMapped = WorkflowTemplateJobPigJobLoggingConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.loggingConfig = mapped
    }

    /**
     * @param value A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
     * */
     */
    @JvmName("unxbahsdcvnihxwq")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
     * */
     */
    @JvmName("npfsgfldfkyyyqwf")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value The HCFS URI of the script that contains the Pig queries.
     */
    @JvmName("kboeqsnmgbhmtopx")
    public suspend fun queryFileUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryFileUri = mapped
    }

    /**
     * @param value A list of queries.
     */
    @JvmName("mistlacwusihowch")
    public suspend fun queryList(`value`: WorkflowTemplateJobPigJobQueryListArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryList = mapped
    }

    /**
     * @param argument A list of queries.
     */
    @JvmName("rmkaqilvkalpcxkh")
    public suspend fun queryList(argument: suspend WorkflowTemplateJobPigJobQueryListArgsBuilder.() -> Unit) {
        val toBeMapped = WorkflowTemplateJobPigJobQueryListArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.queryList = mapped
    }

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

    /**
     * @param values Mapping of query variable names to values (equivalent to the Pig command: `name=`).
     */
    @JvmName("pnklqqaqmkbxjtrm")
    public fun scriptVariables(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scriptVariables = mapped
    }

    internal fun build(): WorkflowTemplateJobPigJobArgs = WorkflowTemplateJobPigJobArgs(
        continueOnFailure = continueOnFailure,
        jarFileUris = jarFileUris,
        loggingConfig = loggingConfig,
        properties = properties,
        queryFileUri = queryFileUri,
        queryList = queryList,
        scriptVariables = scriptVariables,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy