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

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

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

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

import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesArgs.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 kafkaManagementNode A `kafka_management_node` block as defined below.
 * > **Note:** This property has been deprecated and will be removed in version 4.0.
 * @property workerNode A `worker_node` block as defined below.
 * @property zookeeperNode A `zookeeper_node` block as defined below.
 */
public data class KafkaClusterRolesArgs(
    public val headNode: Output,
    public val kafkaManagementNode: Output? = null,
    public val workerNode: Output,
    public val zookeeperNode: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesArgs =
        com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesArgs.builder()
            .headNode(headNode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kafkaManagementNode(
                kafkaManagementNode?.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 [KafkaClusterRolesArgs].
 */
@PulumiTagMarker
public class KafkaClusterRolesArgsBuilder internal constructor() {
    private var headNode: Output? = null

    private var kafkaManagementNode: Output? = null

    private var workerNode: Output? = null

    private var zookeeperNode: Output? = null

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

    /**
     * @param value A `kafka_management_node` block as defined below.
     * > **Note:** This property has been deprecated and will be removed in version 4.0.
     */
    @JvmName("nnaojnnfnaxwrabf")
    public suspend fun kafkaManagementNode(`value`: Output) {
        this.kafkaManagementNode = value
    }

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

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

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

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

    /**
     * @param value A `kafka_management_node` block as defined below.
     * > **Note:** This property has been deprecated and will be removed in version 4.0.
     */
    @JvmName("aygslhjieijwenoh")
    public suspend fun kafkaManagementNode(`value`: KafkaClusterRolesKafkaManagementNodeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kafkaManagementNode = mapped
    }

    /**
     * @param argument A `kafka_management_node` block as defined below.
     * > **Note:** This property has been deprecated and will be removed in version 4.0.
     */
    @JvmName("xtbojxlcomyugnbv")
    public suspend fun kafkaManagementNode(argument: suspend KafkaClusterRolesKafkaManagementNodeArgsBuilder.() -> Unit) {
        val toBeMapped = KafkaClusterRolesKafkaManagementNodeArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.kafkaManagementNode = mapped
    }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy