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

com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterRolesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesArgs.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 InteractiveQueryClusterRolesArgs(
    public val headNode: Output,
    public val workerNode: Output,
    public val zookeeperNode: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesArgs =
        com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesArgs.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 [InteractiveQueryClusterRolesArgs].
 */
@PulumiTagMarker
public class InteractiveQueryClusterRolesArgsBuilder 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("jawhgaknhqjvyfdj")
    public suspend fun headNode(`value`: Output) {
        this.headNode = value
    }

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

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

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

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy