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

com.pulumi.azure.hdinsight.kotlin.inputs.SparkClusterRolesArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.hdinsight.kotlin.inputs

import com.pulumi.azure.hdinsight.inputs.SparkClusterRolesArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property headNode A `head_node` block as defined above.
 * @property workerNode A `worker_node` block as defined below.
 * @property zookeeperNode A `zookeeper_node` block as defined below.
 */
public data class SparkClusterRolesArgs(
    public val headNode: Output,
    public val workerNode: Output,
    public val zookeeperNode: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hdinsight.inputs.SparkClusterRolesArgs =
        com.pulumi.azure.hdinsight.inputs.SparkClusterRolesArgs.builder()
            .headNode(headNode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .workerNode(workerNode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .zookeeperNode(zookeeperNode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [SparkClusterRolesArgs].
 */
@PulumiTagMarker
public class SparkClusterRolesArgsBuilder internal constructor() {
    private var headNode: Output? = null

    private var workerNode: Output? = null

    private var zookeeperNode: Output? = null

    /**
     * @param value A `head_node` block as defined above.
     */
    @JvmName("sameiqqxyqjkrtur")
    public suspend fun headNode(`value`: Output) {
        this.headNode = value
    }

    /**
     * @param value A `worker_node` block as defined below.
     */
    @JvmName("afchgeojufyperdl")
    public suspend fun workerNode(`value`: Output) {
        this.workerNode = value
    }

    /**
     * @param value A `zookeeper_node` block as defined below.
     */
    @JvmName("ucidawfurfwveyqg")
    public suspend fun zookeeperNode(`value`: Output) {
        this.zookeeperNode = value
    }

    /**
     * @param value A `head_node` block as defined above.
     */
    @JvmName("lptydlrlwumqtmnj")
    public suspend fun headNode(`value`: SparkClusterRolesHeadNodeArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headNode = mapped
    }

    /**
     * @param argument A `head_node` block as defined above.
     */
    @JvmName("rkatoquklqmdacuc")
    public suspend fun headNode(argument: suspend SparkClusterRolesHeadNodeArgsBuilder.() -> Unit) {
        val toBeMapped = SparkClusterRolesHeadNodeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.headNode = mapped
    }

    /**
     * @param value A `worker_node` block as defined below.
     */
    @JvmName("uivtqkhcohisfoiy")
    public suspend fun workerNode(`value`: SparkClusterRolesWorkerNodeArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.workerNode = mapped
    }

    /**
     * @param argument A `worker_node` block as defined below.
     */
    @JvmName("swheabwfpyucjwud")
    public suspend
    fun workerNode(argument: suspend SparkClusterRolesWorkerNodeArgsBuilder.() -> Unit) {
        val toBeMapped = SparkClusterRolesWorkerNodeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.workerNode = mapped
    }

    /**
     * @param value A `zookeeper_node` block as defined below.
     */
    @JvmName("dxmarlkmbpeywrdc")
    public suspend fun zookeeperNode(`value`: SparkClusterRolesZookeeperNodeArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.zookeeperNode = mapped
    }

    /**
     * @param argument A `zookeeper_node` block as defined below.
     */
    @JvmName("aljidsfdndwobfbi")
    public suspend
    fun zookeeperNode(argument: suspend SparkClusterRolesZookeeperNodeArgsBuilder.() -> Unit) {
        val toBeMapped = SparkClusterRolesZookeeperNodeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.zookeeperNode = mapped
    }

    internal fun build(): SparkClusterRolesArgs = SparkClusterRolesArgs(
        headNode = headNode ?: throw PulumiNullFieldException("headNode"),
        workerNode = workerNode ?: throw PulumiNullFieldException("workerNode"),
        zookeeperNode = zookeeperNode ?: throw PulumiNullFieldException("zookeeperNode"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy