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

com.pulumi.gcp.dataproc.kotlin.inputs.BatchRuntimeConfigArgs.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.20.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.BatchRuntimeConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property autotuningConfig Optional. Autotuning configuration of the workload.
 * Structure is documented below.
 * @property cohort Optional. Cohort identifier. Identifies families of the workloads having the same shape, e.g. daily ETL jobs.
 * @property containerImage Optional custom container image for the job runtime environment. If not specified, a default container image will be used.
 * @property effectiveProperties (Output)
 * A mapping of property names to values, which are used to configure workload execution.
 * @property properties A mapping of property names to values, which are used to configure workload execution.
 * @property version Version of the batch runtime.
 */
public data class BatchRuntimeConfigArgs(
    public val autotuningConfig: Output? = null,
    public val cohort: Output? = null,
    public val containerImage: Output? = null,
    public val effectiveProperties: Output>? = null,
    public val properties: Output>? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.BatchRuntimeConfigArgs =
        com.pulumi.gcp.dataproc.inputs.BatchRuntimeConfigArgs.builder()
            .autotuningConfig(autotuningConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .cohort(cohort?.applyValue({ args0 -> args0 }))
            .containerImage(containerImage?.applyValue({ args0 -> args0 }))
            .effectiveProperties(
                effectiveProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BatchRuntimeConfigArgs].
 */
@PulumiTagMarker
public class BatchRuntimeConfigArgsBuilder internal constructor() {
    private var autotuningConfig: Output? = null

    private var cohort: Output? = null

    private var containerImage: Output? = null

    private var effectiveProperties: Output>? = null

    private var properties: Output>? = null

    private var version: Output? = null

    /**
     * @param value Optional. Autotuning configuration of the workload.
     * Structure is documented below.
     */
    @JvmName("otxkwwfoyvklrecl")
    public suspend fun autotuningConfig(`value`: Output) {
        this.autotuningConfig = value
    }

    /**
     * @param value Optional. Cohort identifier. Identifies families of the workloads having the same shape, e.g. daily ETL jobs.
     */
    @JvmName("clgclutqxshfxjne")
    public suspend fun cohort(`value`: Output) {
        this.cohort = value
    }

    /**
     * @param value Optional custom container image for the job runtime environment. If not specified, a default container image will be used.
     */
    @JvmName("pidpdmjqxbxdefkh")
    public suspend fun containerImage(`value`: Output) {
        this.containerImage = value
    }

    /**
     * @param value (Output)
     * A mapping of property names to values, which are used to configure workload execution.
     */
    @JvmName("enlxpgwugujwicxk")
    public suspend fun effectiveProperties(`value`: Output>) {
        this.effectiveProperties = value
    }

    /**
     * @param value A mapping of property names to values, which are used to configure workload execution.
     */
    @JvmName("dpqyuomirekuumce")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value Version of the batch runtime.
     */
    @JvmName("gecfteeeofdaejse")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Optional. Autotuning configuration of the workload.
     * Structure is documented below.
     */
    @JvmName("kjicinybexngxggl")
    public suspend fun autotuningConfig(`value`: BatchRuntimeConfigAutotuningConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autotuningConfig = mapped
    }

    /**
     * @param argument Optional. Autotuning configuration of the workload.
     * Structure is documented below.
     */
    @JvmName("ryphbikmrrdaaudc")
    public suspend fun autotuningConfig(argument: suspend BatchRuntimeConfigAutotuningConfigArgsBuilder.() -> Unit) {
        val toBeMapped = BatchRuntimeConfigAutotuningConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.autotuningConfig = mapped
    }

    /**
     * @param value Optional. Cohort identifier. Identifies families of the workloads having the same shape, e.g. daily ETL jobs.
     */
    @JvmName("hkknvigdkevdbhrp")
    public suspend fun cohort(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cohort = mapped
    }

    /**
     * @param value Optional custom container image for the job runtime environment. If not specified, a default container image will be used.
     */
    @JvmName("qxtnobptinmcdbhg")
    public suspend fun containerImage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerImage = mapped
    }

    /**
     * @param value (Output)
     * A mapping of property names to values, which are used to configure workload execution.
     */
    @JvmName("tnnpfhuabndvvtdq")
    public suspend fun effectiveProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.effectiveProperties = mapped
    }

    /**
     * @param values (Output)
     * A mapping of property names to values, which are used to configure workload execution.
     */
    @JvmName("lgjjfkesrsjqqnxs")
    public fun effectiveProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.effectiveProperties = mapped
    }

    /**
     * @param value A mapping of property names to values, which are used to configure workload execution.
     */
    @JvmName("lehnghujodceqqlg")
    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, which are used to configure workload execution.
     */
    @JvmName("ianoxickigcnnbir")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value Version of the batch runtime.
     */
    @JvmName("fhdvqrspqdfqmlaq")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): BatchRuntimeConfigArgs = BatchRuntimeConfigArgs(
        autotuningConfig = autotuningConfig,
        cohort = cohort,
        containerImage = containerImage,
        effectiveProperties = effectiveProperties,
        properties = properties,
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy