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

com.pulumi.azurenative.servicebus.QueueAuthorizationRuleArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.servicebus;

import com.pulumi.azurenative.servicebus.enums.AccessRights;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final QueueAuthorizationRuleArgs Empty = new QueueAuthorizationRuleArgs();

    /**
     * The authorization rule name.
     * 
     */
    @Import(name="authorizationRuleName")
    private @Nullable Output authorizationRuleName;

    /**
     * @return The authorization rule name.
     * 
     */
    public Optional> authorizationRuleName() {
        return Optional.ofNullable(this.authorizationRuleName);
    }

    /**
     * The namespace name
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return The namespace name
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * The queue name.
     * 
     */
    @Import(name="queueName", required=true)
    private Output queueName;

    /**
     * @return The queue name.
     * 
     */
    public Output queueName() {
        return this.queueName;
    }

    /**
     * Name of the Resource group within the Azure subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the Resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The rights associated with the rule.
     * 
     */
    @Import(name="rights", required=true)
    private Output>> rights;

    /**
     * @return The rights associated with the rule.
     * 
     */
    public Output>> rights() {
        return this.rights;
    }

    private QueueAuthorizationRuleArgs() {}

    private QueueAuthorizationRuleArgs(QueueAuthorizationRuleArgs $) {
        this.authorizationRuleName = $.authorizationRuleName;
        this.namespaceName = $.namespaceName;
        this.queueName = $.queueName;
        this.resourceGroupName = $.resourceGroupName;
        this.rights = $.rights;
    }

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

    public static final class Builder {
        private QueueAuthorizationRuleArgs $;

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

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

        /**
         * @param authorizationRuleName The authorization rule name.
         * 
         * @return builder
         * 
         */
        public Builder authorizationRuleName(@Nullable Output authorizationRuleName) {
            $.authorizationRuleName = authorizationRuleName;
            return this;
        }

        /**
         * @param authorizationRuleName The authorization rule name.
         * 
         * @return builder
         * 
         */
        public Builder authorizationRuleName(String authorizationRuleName) {
            return authorizationRuleName(Output.of(authorizationRuleName));
        }

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

        /**
         * @param namespaceName The namespace name
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

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

        /**
         * @param queueName The queue name.
         * 
         * @return builder
         * 
         */
        public Builder queueName(String queueName) {
            return queueName(Output.of(queueName));
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the Resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param rights The rights associated with the rule.
         * 
         * @return builder
         * 
         */
        public Builder rights(Output>> rights) {
            $.rights = rights;
            return this;
        }

        /**
         * @param rights The rights associated with the rule.
         * 
         * @return builder
         * 
         */
        public Builder rights(List> rights) {
            return rights(Output.of(rights));
        }

        /**
         * @param rights The rights associated with the rule.
         * 
         * @return builder
         * 
         */
        public Builder rights(Either... rights) {
            return rights(List.of(rights));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy