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

com.pulumi.azurenative.notificationhubs.NamespaceAuthorizationRuleArgs Maven / Gradle / Ivy

The 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.notificationhubs;

import com.pulumi.azurenative.notificationhubs.inputs.SharedAccessAuthorizationRulePropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NamespaceAuthorizationRuleArgs Empty = new NamespaceAuthorizationRuleArgs();

    /**
     * Authorization Rule Name
     * 
     */
    @Import(name="authorizationRuleName")
    private @Nullable Output authorizationRuleName;

    /**
     * @return Authorization Rule Name
     * 
     */
    public Optional> authorizationRuleName() {
        return Optional.ofNullable(this.authorizationRuleName);
    }

    /**
     * Deprecated - only for compatibility.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Deprecated - only for compatibility.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

    /**
     * SharedAccessAuthorizationRule properties.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return SharedAccessAuthorizationRule properties.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

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

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Deprecated - only for compatibility.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Deprecated - only for compatibility.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private NamespaceAuthorizationRuleArgs() {}

    private NamespaceAuthorizationRuleArgs(NamespaceAuthorizationRuleArgs $) {
        this.authorizationRuleName = $.authorizationRuleName;
        this.location = $.location;
        this.namespaceName = $.namespaceName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private NamespaceAuthorizationRuleArgs $;

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

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

        /**
         * @param authorizationRuleName Authorization Rule Name
         * 
         * @return builder
         * 
         */
        public Builder authorizationRuleName(@Nullable Output authorizationRuleName) {
            $.authorizationRuleName = authorizationRuleName;
            return this;
        }

        /**
         * @param authorizationRuleName Authorization Rule Name
         * 
         * @return builder
         * 
         */
        public Builder authorizationRuleName(String authorizationRuleName) {
            return authorizationRuleName(Output.of(authorizationRuleName));
        }

        /**
         * @param location Deprecated - only for compatibility.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Deprecated - only for compatibility.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

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

        /**
         * @param properties SharedAccessAuthorizationRule properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties SharedAccessAuthorizationRule properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(SharedAccessAuthorizationRulePropertiesArgs properties) {
            return properties(Output.of(properties));
        }

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

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

        /**
         * @param tags Deprecated - only for compatibility.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Deprecated - only for compatibility.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy