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

com.pulumi.azurenative.webpubsub.inputs.EventHubEndpointArgs 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.webpubsub.inputs;

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;


/**
 * An Event Hub endpoint.
 * The managed identity of Web PubSub service must be enabled, and the identity should have the "Azure Event Hubs Data sender" role to access Event Hub.
 * 
 */
public final class EventHubEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final EventHubEndpointArgs Empty = new EventHubEndpointArgs();

    /**
     * The name of the Event Hub.
     * 
     */
    @Import(name="eventHubName", required=true)
    private Output eventHubName;

    /**
     * @return The name of the Event Hub.
     * 
     */
    public Output eventHubName() {
        return this.eventHubName;
    }

    /**
     * The fully qualified namespace name of the Event Hub resource. For example, "example.servicebus.windows.net".
     * 
     */
    @Import(name="fullyQualifiedNamespace", required=true)
    private Output fullyQualifiedNamespace;

    /**
     * @return The fully qualified namespace name of the Event Hub resource. For example, "example.servicebus.windows.net".
     * 
     */
    public Output fullyQualifiedNamespace() {
        return this.fullyQualifiedNamespace;
    }

    /**
     * Expected value is 'EventHub'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return
     * Expected value is 'EventHub'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private EventHubEndpointArgs() {}

    private EventHubEndpointArgs(EventHubEndpointArgs $) {
        this.eventHubName = $.eventHubName;
        this.fullyQualifiedNamespace = $.fullyQualifiedNamespace;
        this.type = $.type;
    }

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

    public static final class Builder {
        private EventHubEndpointArgs $;

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

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

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

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

        /**
         * @param fullyQualifiedNamespace The fully qualified namespace name of the Event Hub resource. For example, "example.servicebus.windows.net".
         * 
         * @return builder
         * 
         */
        public Builder fullyQualifiedNamespace(Output fullyQualifiedNamespace) {
            $.fullyQualifiedNamespace = fullyQualifiedNamespace;
            return this;
        }

        /**
         * @param fullyQualifiedNamespace The fully qualified namespace name of the Event Hub resource. For example, "example.servicebus.windows.net".
         * 
         * @return builder
         * 
         */
        public Builder fullyQualifiedNamespace(String fullyQualifiedNamespace) {
            return fullyQualifiedNamespace(Output.of(fullyQualifiedNamespace));
        }

        /**
         * @param type
         * Expected value is 'EventHub'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type
         * Expected value is 'EventHub'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public EventHubEndpointArgs build() {
            if ($.eventHubName == null) {
                throw new MissingRequiredPropertyException("EventHubEndpointArgs", "eventHubName");
            }
            if ($.fullyQualifiedNamespace == null) {
                throw new MissingRequiredPropertyException("EventHubEndpointArgs", "fullyQualifiedNamespace");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy