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

com.pulumi.azurenative.purview.KafkaConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.purview;

import com.pulumi.azurenative.purview.enums.EventHubType;
import com.pulumi.azurenative.purview.enums.EventStreamingState;
import com.pulumi.azurenative.purview.enums.EventStreamingType;
import com.pulumi.azurenative.purview.inputs.CredentialsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final KafkaConfigurationArgs Empty = new KafkaConfigurationArgs();

    /**
     * The name of the account.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the account.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * Consumer group for hook event hub.
     * 
     */
    @Import(name="consumerGroup")
    private @Nullable Output consumerGroup;

    /**
     * @return Consumer group for hook event hub.
     * 
     */
    public Optional> consumerGroup() {
        return Optional.ofNullable(this.consumerGroup);
    }

    /**
     * Credentials to access event hub.
     * 
     */
    @Import(name="credentials")
    private @Nullable Output credentials;

    /**
     * @return Credentials to access event hub.
     * 
     */
    public Optional> credentials() {
        return Optional.ofNullable(this.credentials);
    }

    /**
     * Optional partition Id for notification event hub. If not set, all partitions will be leveraged.
     * 
     */
    @Import(name="eventHubPartitionId")
    private @Nullable Output eventHubPartitionId;

    /**
     * @return Optional partition Id for notification event hub. If not set, all partitions will be leveraged.
     * 
     */
    public Optional> eventHubPartitionId() {
        return Optional.ofNullable(this.eventHubPartitionId);
    }

    @Import(name="eventHubResourceId")
    private @Nullable Output eventHubResourceId;

    public Optional> eventHubResourceId() {
        return Optional.ofNullable(this.eventHubResourceId);
    }

    /**
     * The event hub type.
     * 
     */
    @Import(name="eventHubType")
    private @Nullable Output> eventHubType;

    /**
     * @return The event hub type.
     * 
     */
    public Optional>> eventHubType() {
        return Optional.ofNullable(this.eventHubType);
    }

    /**
     * The state of the event streaming service
     * 
     */
    @Import(name="eventStreamingState")
    private @Nullable Output> eventStreamingState;

    /**
     * @return The state of the event streaming service
     * 
     */
    public Optional>> eventStreamingState() {
        return Optional.ofNullable(this.eventStreamingState);
    }

    /**
     * The event streaming service type
     * 
     */
    @Import(name="eventStreamingType")
    private @Nullable Output> eventStreamingType;

    /**
     * @return The event streaming service type
     * 
     */
    public Optional>> eventStreamingType() {
        return Optional.ofNullable(this.eventStreamingType);
    }

    /**
     * The kafka configuration name.
     * 
     */
    @Import(name="kafkaConfigurationName")
    private @Nullable Output kafkaConfigurationName;

    /**
     * @return The kafka configuration name.
     * 
     */
    public Optional> kafkaConfigurationName() {
        return Optional.ofNullable(this.kafkaConfigurationName);
    }

    /**
     * The resource group name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private KafkaConfigurationArgs() {}

    private KafkaConfigurationArgs(KafkaConfigurationArgs $) {
        this.accountName = $.accountName;
        this.consumerGroup = $.consumerGroup;
        this.credentials = $.credentials;
        this.eventHubPartitionId = $.eventHubPartitionId;
        this.eventHubResourceId = $.eventHubResourceId;
        this.eventHubType = $.eventHubType;
        this.eventStreamingState = $.eventStreamingState;
        this.eventStreamingType = $.eventStreamingType;
        this.kafkaConfigurationName = $.kafkaConfigurationName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private KafkaConfigurationArgs $;

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

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

        /**
         * @param accountName The name of the account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param consumerGroup Consumer group for hook event hub.
         * 
         * @return builder
         * 
         */
        public Builder consumerGroup(@Nullable Output consumerGroup) {
            $.consumerGroup = consumerGroup;
            return this;
        }

        /**
         * @param consumerGroup Consumer group for hook event hub.
         * 
         * @return builder
         * 
         */
        public Builder consumerGroup(String consumerGroup) {
            return consumerGroup(Output.of(consumerGroup));
        }

        /**
         * @param credentials Credentials to access event hub.
         * 
         * @return builder
         * 
         */
        public Builder credentials(@Nullable Output credentials) {
            $.credentials = credentials;
            return this;
        }

        /**
         * @param credentials Credentials to access event hub.
         * 
         * @return builder
         * 
         */
        public Builder credentials(CredentialsArgs credentials) {
            return credentials(Output.of(credentials));
        }

        /**
         * @param eventHubPartitionId Optional partition Id for notification event hub. If not set, all partitions will be leveraged.
         * 
         * @return builder
         * 
         */
        public Builder eventHubPartitionId(@Nullable Output eventHubPartitionId) {
            $.eventHubPartitionId = eventHubPartitionId;
            return this;
        }

        /**
         * @param eventHubPartitionId Optional partition Id for notification event hub. If not set, all partitions will be leveraged.
         * 
         * @return builder
         * 
         */
        public Builder eventHubPartitionId(String eventHubPartitionId) {
            return eventHubPartitionId(Output.of(eventHubPartitionId));
        }

        public Builder eventHubResourceId(@Nullable Output eventHubResourceId) {
            $.eventHubResourceId = eventHubResourceId;
            return this;
        }

        public Builder eventHubResourceId(String eventHubResourceId) {
            return eventHubResourceId(Output.of(eventHubResourceId));
        }

        /**
         * @param eventHubType The event hub type.
         * 
         * @return builder
         * 
         */
        public Builder eventHubType(@Nullable Output> eventHubType) {
            $.eventHubType = eventHubType;
            return this;
        }

        /**
         * @param eventHubType The event hub type.
         * 
         * @return builder
         * 
         */
        public Builder eventHubType(Either eventHubType) {
            return eventHubType(Output.of(eventHubType));
        }

        /**
         * @param eventHubType The event hub type.
         * 
         * @return builder
         * 
         */
        public Builder eventHubType(String eventHubType) {
            return eventHubType(Either.ofLeft(eventHubType));
        }

        /**
         * @param eventHubType The event hub type.
         * 
         * @return builder
         * 
         */
        public Builder eventHubType(EventHubType eventHubType) {
            return eventHubType(Either.ofRight(eventHubType));
        }

        /**
         * @param eventStreamingState The state of the event streaming service
         * 
         * @return builder
         * 
         */
        public Builder eventStreamingState(@Nullable Output> eventStreamingState) {
            $.eventStreamingState = eventStreamingState;
            return this;
        }

        /**
         * @param eventStreamingState The state of the event streaming service
         * 
         * @return builder
         * 
         */
        public Builder eventStreamingState(Either eventStreamingState) {
            return eventStreamingState(Output.of(eventStreamingState));
        }

        /**
         * @param eventStreamingState The state of the event streaming service
         * 
         * @return builder
         * 
         */
        public Builder eventStreamingState(String eventStreamingState) {
            return eventStreamingState(Either.ofLeft(eventStreamingState));
        }

        /**
         * @param eventStreamingState The state of the event streaming service
         * 
         * @return builder
         * 
         */
        public Builder eventStreamingState(EventStreamingState eventStreamingState) {
            return eventStreamingState(Either.ofRight(eventStreamingState));
        }

        /**
         * @param eventStreamingType The event streaming service type
         * 
         * @return builder
         * 
         */
        public Builder eventStreamingType(@Nullable Output> eventStreamingType) {
            $.eventStreamingType = eventStreamingType;
            return this;
        }

        /**
         * @param eventStreamingType The event streaming service type
         * 
         * @return builder
         * 
         */
        public Builder eventStreamingType(Either eventStreamingType) {
            return eventStreamingType(Output.of(eventStreamingType));
        }

        /**
         * @param eventStreamingType The event streaming service type
         * 
         * @return builder
         * 
         */
        public Builder eventStreamingType(String eventStreamingType) {
            return eventStreamingType(Either.ofLeft(eventStreamingType));
        }

        /**
         * @param eventStreamingType The event streaming service type
         * 
         * @return builder
         * 
         */
        public Builder eventStreamingType(EventStreamingType eventStreamingType) {
            return eventStreamingType(Either.ofRight(eventStreamingType));
        }

        /**
         * @param kafkaConfigurationName The kafka configuration name.
         * 
         * @return builder
         * 
         */
        public Builder kafkaConfigurationName(@Nullable Output kafkaConfigurationName) {
            $.kafkaConfigurationName = kafkaConfigurationName;
            return this;
        }

        /**
         * @param kafkaConfigurationName The kafka configuration name.
         * 
         * @return builder
         * 
         */
        public Builder kafkaConfigurationName(String kafkaConfigurationName) {
            return kafkaConfigurationName(Output.of(kafkaConfigurationName));
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public KafkaConfigurationArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("KafkaConfigurationArgs", "accountName");
            }
            $.eventStreamingState = Codegen.stringProp("eventStreamingState").left(EventStreamingState.class).output().arg($.eventStreamingState).def("Enabled").getNullable();
            $.eventStreamingType = Codegen.stringProp("eventStreamingType").left(EventStreamingType.class).output().arg($.eventStreamingType).def("None").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("KafkaConfigurationArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy