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

com.pulumi.azure.eventhub.EventHubAuthorizationRuleArgs 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.eventhub;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EventHubAuthorizationRuleArgs Empty = new EventHubAuthorizationRuleArgs();

    /**
     * Specifies the name of the EventHub. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="eventhubName", required=true)
    private Output eventhubName;

    /**
     * @return Specifies the name of the EventHub. Changing this forces a new resource to be created.
     * 
     */
    public Output eventhubName() {
        return this.eventhubName;
    }

    /**
     * Does this Authorization Rule have permissions to Listen to the Event Hub? Defaults to `false`.
     * 
     */
    @Import(name="listen")
    private @Nullable Output listen;

    /**
     * @return Does this Authorization Rule have permissions to Listen to the Event Hub? Defaults to `false`.
     * 
     */
    public Optional> listen() {
        return Optional.ofNullable(this.listen);
    }

    /**
     * Does this Authorization Rule have permissions to Manage to the Event Hub? When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
     * 
     */
    @Import(name="manage")
    private @Nullable Output manage;

    /**
     * @return Does this Authorization Rule have permissions to Manage to the Event Hub? When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
     * 
     */
    public Optional> manage() {
        return Optional.ofNullable(this.manage);
    }

    /**
     * Specifies the name of the EventHub Authorization Rule resource. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the EventHub Authorization Rule resource. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies the name of the grandparent EventHub Namespace. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return Specifies the name of the grandparent EventHub Namespace. Changing this forces a new resource to be created.
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * The name of the resource group in which the EventHub Namespace exists. Changing this forces a new resource to be created.
     * 
     * > **NOTE** At least one of the 3 permissions below needs to be set.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group in which the EventHub Namespace exists. Changing this forces a new resource to be created.
     * 
     * > **NOTE** At least one of the 3 permissions below needs to be set.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Does this Authorization Rule have permissions to Send to the Event Hub? Defaults to `false`.
     * 
     */
    @Import(name="send")
    private @Nullable Output send;

    /**
     * @return Does this Authorization Rule have permissions to Send to the Event Hub? Defaults to `false`.
     * 
     */
    public Optional> send() {
        return Optional.ofNullable(this.send);
    }

    private EventHubAuthorizationRuleArgs() {}

    private EventHubAuthorizationRuleArgs(EventHubAuthorizationRuleArgs $) {
        this.eventhubName = $.eventhubName;
        this.listen = $.listen;
        this.manage = $.manage;
        this.name = $.name;
        this.namespaceName = $.namespaceName;
        this.resourceGroupName = $.resourceGroupName;
        this.send = $.send;
    }

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

    public static final class Builder {
        private EventHubAuthorizationRuleArgs $;

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

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

        /**
         * @param eventhubName Specifies the name of the EventHub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubName(Output eventhubName) {
            $.eventhubName = eventhubName;
            return this;
        }

        /**
         * @param eventhubName Specifies the name of the EventHub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubName(String eventhubName) {
            return eventhubName(Output.of(eventhubName));
        }

        /**
         * @param listen Does this Authorization Rule have permissions to Listen to the Event Hub? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder listen(@Nullable Output listen) {
            $.listen = listen;
            return this;
        }

        /**
         * @param listen Does this Authorization Rule have permissions to Listen to the Event Hub? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder listen(Boolean listen) {
            return listen(Output.of(listen));
        }

        /**
         * @param manage Does this Authorization Rule have permissions to Manage to the Event Hub? When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder manage(@Nullable Output manage) {
            $.manage = manage;
            return this;
        }

        /**
         * @param manage Does this Authorization Rule have permissions to Manage to the Event Hub? When this property is `true` - both `listen` and `send` must be too. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder manage(Boolean manage) {
            return manage(Output.of(manage));
        }

        /**
         * @param name Specifies the name of the EventHub Authorization Rule resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the EventHub Authorization Rule resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param namespaceName Specifies the name of the grandparent EventHub Namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName Specifies the name of the grandparent EventHub Namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @param resourceGroupName The name of the resource group in which the EventHub Namespace exists. Changing this forces a new resource to be created.
         * 
         * > **NOTE** At least one of the 3 permissions below needs to be set.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which the EventHub Namespace exists. Changing this forces a new resource to be created.
         * 
         * > **NOTE** At least one of the 3 permissions below needs to be set.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param send Does this Authorization Rule have permissions to Send to the Event Hub? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder send(@Nullable Output send) {
            $.send = send;
            return this;
        }

        /**
         * @param send Does this Authorization Rule have permissions to Send to the Event Hub? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder send(Boolean send) {
            return send(Output.of(send));
        }

        public EventHubAuthorizationRuleArgs build() {
            if ($.eventhubName == null) {
                throw new MissingRequiredPropertyException("EventHubAuthorizationRuleArgs", "eventhubName");
            }
            if ($.namespaceName == null) {
                throw new MissingRequiredPropertyException("EventHubAuthorizationRuleArgs", "namespaceName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("EventHubAuthorizationRuleArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy