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

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

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.hdinsight.inputs;

import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesHeadNodeArgs;
import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesKafkaManagementNodeArgs;
import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesWorkerNodeArgs;
import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesZookeeperNodeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class KafkaClusterRolesArgs extends com.pulumi.resources.ResourceArgs {

    public static final KafkaClusterRolesArgs Empty = new KafkaClusterRolesArgs();

    /**
     * A `head_node` block as defined above.
     * 
     */
    @Import(name="headNode", required=true)
    private Output headNode;

    /**
     * @return A `head_node` block as defined above.
     * 
     */
    public Output headNode() {
        return this.headNode;
    }

    /**
     * A `kafka_management_node` block as defined below.
     * 
     * > **Note:** This property has been deprecated and will be removed in version 4.0.
     * 
     */
    @Import(name="kafkaManagementNode")
    private @Nullable Output kafkaManagementNode;

    /**
     * @return A `kafka_management_node` block as defined below.
     * 
     * > **Note:** This property has been deprecated and will be removed in version 4.0.
     * 
     */
    public Optional> kafkaManagementNode() {
        return Optional.ofNullable(this.kafkaManagementNode);
    }

    /**
     * A `worker_node` block as defined below.
     * 
     */
    @Import(name="workerNode", required=true)
    private Output workerNode;

    /**
     * @return A `worker_node` block as defined below.
     * 
     */
    public Output workerNode() {
        return this.workerNode;
    }

    /**
     * A `zookeeper_node` block as defined below.
     * 
     */
    @Import(name="zookeeperNode", required=true)
    private Output zookeeperNode;

    /**
     * @return A `zookeeper_node` block as defined below.
     * 
     */
    public Output zookeeperNode() {
        return this.zookeeperNode;
    }

    private KafkaClusterRolesArgs() {}

    private KafkaClusterRolesArgs(KafkaClusterRolesArgs $) {
        this.headNode = $.headNode;
        this.kafkaManagementNode = $.kafkaManagementNode;
        this.workerNode = $.workerNode;
        this.zookeeperNode = $.zookeeperNode;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(KafkaClusterRolesArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private KafkaClusterRolesArgs $;

        public Builder() {
            $ = new KafkaClusterRolesArgs();
        }

        public Builder(KafkaClusterRolesArgs defaults) {
            $ = new KafkaClusterRolesArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param headNode A `head_node` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder headNode(Output headNode) {
            $.headNode = headNode;
            return this;
        }

        /**
         * @param headNode A `head_node` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder headNode(KafkaClusterRolesHeadNodeArgs headNode) {
            return headNode(Output.of(headNode));
        }

        /**
         * @param kafkaManagementNode A `kafka_management_node` block as defined below.
         * 
         * > **Note:** This property has been deprecated and will be removed in version 4.0.
         * 
         * @return builder
         * 
         */
        public Builder kafkaManagementNode(@Nullable Output kafkaManagementNode) {
            $.kafkaManagementNode = kafkaManagementNode;
            return this;
        }

        /**
         * @param kafkaManagementNode A `kafka_management_node` block as defined below.
         * 
         * > **Note:** This property has been deprecated and will be removed in version 4.0.
         * 
         * @return builder
         * 
         */
        public Builder kafkaManagementNode(KafkaClusterRolesKafkaManagementNodeArgs kafkaManagementNode) {
            return kafkaManagementNode(Output.of(kafkaManagementNode));
        }

        /**
         * @param workerNode A `worker_node` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder workerNode(Output workerNode) {
            $.workerNode = workerNode;
            return this;
        }

        /**
         * @param workerNode A `worker_node` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder workerNode(KafkaClusterRolesWorkerNodeArgs workerNode) {
            return workerNode(Output.of(workerNode));
        }

        /**
         * @param zookeeperNode A `zookeeper_node` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder zookeeperNode(Output zookeeperNode) {
            $.zookeeperNode = zookeeperNode;
            return this;
        }

        /**
         * @param zookeeperNode A `zookeeper_node` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder zookeeperNode(KafkaClusterRolesZookeeperNodeArgs zookeeperNode) {
            return zookeeperNode(Output.of(zookeeperNode));
        }

        public KafkaClusterRolesArgs build() {
            if ($.headNode == null) {
                throw new MissingRequiredPropertyException("KafkaClusterRolesArgs", "headNode");
            }
            if ($.workerNode == null) {
                throw new MissingRequiredPropertyException("KafkaClusterRolesArgs", "workerNode");
            }
            if ($.zookeeperNode == null) {
                throw new MissingRequiredPropertyException("KafkaClusterRolesArgs", "zookeeperNode");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy