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

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

/**
 *
 * @property defaultProperties A map of default Spark properties to apply to workloads in this application environment. These defaults may be overridden by per-application properties.
 * @property defaultVersion The default Dataproc version to use for applications submitted to this application environment
 */
public data class GdcApplicationEnvironmentSparkApplicationEnvironmentConfigArgs(
    public val defaultProperties: Output>? = null,
    public val defaultVersion: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.GdcApplicationEnvironmentSparkApplicationEnvironmentConfigArgs =
        com.pulumi.gcp.dataproc.inputs.GdcApplicationEnvironmentSparkApplicationEnvironmentConfigArgs.builder()
            .defaultProperties(
                defaultProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .defaultVersion(defaultVersion?.applyValue({ args0 -> args0 })).build()
}

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

    private var defaultVersion: Output? = null

    /**
     * @param value A map of default Spark properties to apply to workloads in this application environment. These defaults may be overridden by per-application properties.
     */
    @JvmName("isubftpvydpsqisw")
    public suspend fun defaultProperties(`value`: Output>) {
        this.defaultProperties = value
    }

    /**
     * @param value The default Dataproc version to use for applications submitted to this application environment
     */
    @JvmName("mstlryrsnjawepuy")
    public suspend fun defaultVersion(`value`: Output) {
        this.defaultVersion = value
    }

    /**
     * @param value A map of default Spark properties to apply to workloads in this application environment. These defaults may be overridden by per-application properties.
     */
    @JvmName("hwufnmpudgkinxeh")
    public suspend fun defaultProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultProperties = mapped
    }

    /**
     * @param values A map of default Spark properties to apply to workloads in this application environment. These defaults may be overridden by per-application properties.
     */
    @JvmName("thofawcipfkswlvx")
    public fun defaultProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultProperties = mapped
    }

    /**
     * @param value The default Dataproc version to use for applications submitted to this application environment
     */
    @JvmName("rkpsgclxoidaspvr")
    public suspend fun defaultVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultVersion = mapped
    }

    internal fun build(): GdcApplicationEnvironmentSparkApplicationEnvironmentConfigArgs =
        GdcApplicationEnvironmentSparkApplicationEnvironmentConfigArgs(
            defaultProperties = defaultProperties,
            defaultVersion = defaultVersion,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy