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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgs.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.13.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.ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgs.builder
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.Map
import kotlin.jvm.JvmName

/**
 *
 * @property componentVersion The components that should be installed in this Dataproc cluster. The key must be a string from the
 * KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.
 * * **NOTE** : `component_version[SPARK]` is mandatory to set, or the creation of the cluster will fail.
 * @property properties The properties to set on daemon config files. Property keys are specified in prefix:property format,
 * for example spark:spark.kubernetes.container.image.
 */
public data class ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgs(
    public val componentVersion: Output>,
    public val properties: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgs.builder()
            .componentVersion(
                componentVersion.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var properties: Output>? = null

    /**
     * @param value The components that should be installed in this Dataproc cluster. The key must be a string from the
     * KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.
     * * **NOTE** : `component_version[SPARK]` is mandatory to set, or the creation of the cluster will fail.
     */
    @JvmName("lqyfeywbmfbomkqt")
    public suspend fun componentVersion(`value`: Output>) {
        this.componentVersion = value
    }

    /**
     * @param value The properties to set on daemon config files. Property keys are specified in prefix:property format,
     * for example spark:spark.kubernetes.container.image.
     */
    @JvmName("vceervwhwgaomrig")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value The components that should be installed in this Dataproc cluster. The key must be a string from the
     * KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.
     * * **NOTE** : `component_version[SPARK]` is mandatory to set, or the creation of the cluster will fail.
     */
    @JvmName("lpcwycwecmqesgwh")
    public suspend fun componentVersion(`value`: Map) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.componentVersion = mapped
    }

    /**
     * @param values The components that should be installed in this Dataproc cluster. The key must be a string from the
     * KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.
     * * **NOTE** : `component_version[SPARK]` is mandatory to set, or the creation of the cluster will fail.
     */
    @JvmName("qihtcfdmkcwbyirm")
    public fun componentVersion(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.componentVersion = mapped
    }

    /**
     * @param value The properties to set on daemon config files. Property keys are specified in prefix:property format,
     * for example spark:spark.kubernetes.container.image.
     */
    @JvmName("ptrumbdrnywpheia")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values The properties to set on daemon config files. Property keys are specified in prefix:property format,
     * for example spark:spark.kubernetes.container.image.
     */
    @JvmName("texcjbeqsjnsrnyg")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    internal fun build(): ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgs =
        ClusterVirtualClusterConfigKubernetesClusterConfigKubernetesSoftwareConfigArgs(
            componentVersion = componentVersion ?: throw PulumiNullFieldException("componentVersion"),
            properties = properties,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy