// *** 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.servicebus.inputs;

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


public final class GetSubscriptionPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSubscriptionPlainArgs Empty = new GetSubscriptionPlainArgs();

    /**
     * Specifies the name of the ServiceBus Subscription.
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return Specifies the name of the ServiceBus Subscription.
     * 
     */
    public String name() {
        return this.name;
    }

    /**
     * The name of the ServiceBus Namespace.
     * 
     * @deprecated
     * `namespace_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
     * 
     */
    @Deprecated /* `namespace_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
    @Import(name="namespaceName")
    private @Nullable String namespaceName;

    /**
     * @return The name of the ServiceBus Namespace.
     * 
     * @deprecated
     * `namespace_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
     * 
     */
    @Deprecated /* `namespace_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
    public Optional<String> namespaceName() {
        return Optional.ofNullable(this.namespaceName);
    }

    /**
     * Specifies the name of the Resource Group where the ServiceBus Namespace exists.
     * 
     * @deprecated
     * `resource_group_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
     * 
     */
    @Deprecated /* `resource_group_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
    @Import(name="resourceGroupName")
    private @Nullable String resourceGroupName;

    /**
     * @return Specifies the name of the Resource Group where the ServiceBus Namespace exists.
     * 
     * @deprecated
     * `resource_group_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
     * 
     */
    @Deprecated /* `resource_group_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
    public Optional<String> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * The ID of the ServiceBus Topic where the Service Bus Subscription exists.
     * 
     */
    @Import(name="topicId")
    private @Nullable String topicId;

    /**
     * @return The ID of the ServiceBus Topic where the Service Bus Subscription exists.
     * 
     */
    public Optional<String> topicId() {
        return Optional.ofNullable(this.topicId);
    }

    /**
     * The name of the ServiceBus Topic.
     * 
     * &gt; **Note:** `namespace_name`，`resource_group_name` and `topic_name` has been deprecated and will be removed in version 4.0 of the provider in favour of `topic_id`.
     * 
     * @deprecated
     * `topic_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
     * 
     */
    @Deprecated /* `topic_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
    @Import(name="topicName")
    private @Nullable String topicName;

    /**
     * @return The name of the ServiceBus Topic.
     * 
     * &gt; **Note:** `namespace_name`，`resource_group_name` and `topic_name` has been deprecated and will be removed in version 4.0 of the provider in favour of `topic_id`.
     * 
     * @deprecated
     * `topic_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
     * 
     */
    @Deprecated /* `topic_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
    public Optional<String> topicName() {
        return Optional.ofNullable(this.topicName);
    }

    private GetSubscriptionPlainArgs() {}

    private GetSubscriptionPlainArgs(GetSubscriptionPlainArgs $) {
        this.name = $.name;
        this.namespaceName = $.namespaceName;
        this.resourceGroupName = $.resourceGroupName;
        this.topicId = $.topicId;
        this.topicName = $.topicName;
    }

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

    public static final class Builder {
        private GetSubscriptionPlainArgs $;

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

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

        /**
         * @param name Specifies the name of the ServiceBus Subscription.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            $.name = name;
            return this;
        }

        /**
         * @param namespaceName The name of the ServiceBus Namespace.
         * 
         * @return builder
         * 
         * @deprecated
         * `namespace_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
         * 
         */
        @Deprecated /* `namespace_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
        public Builder namespaceName(@Nullable String namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param resourceGroupName Specifies the name of the Resource Group where the ServiceBus Namespace exists.
         * 
         * @return builder
         * 
         * @deprecated
         * `resource_group_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
         * 
         */
        @Deprecated /* `resource_group_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
        public Builder resourceGroupName(@Nullable String resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param topicId The ID of the ServiceBus Topic where the Service Bus Subscription exists.
         * 
         * @return builder
         * 
         */
        public Builder topicId(@Nullable String topicId) {
            $.topicId = topicId;
            return this;
        }

        /**
         * @param topicName The name of the ServiceBus Topic.
         * 
         * &gt; **Note:** `namespace_name`，`resource_group_name` and `topic_name` has been deprecated and will be removed in version 4.0 of the provider in favour of `topic_id`.
         * 
         * @return builder
         * 
         * @deprecated
         * `topic_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider.
         * 
         */
        @Deprecated /* `topic_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM Provider. */
        public Builder topicName(@Nullable String topicName) {
            $.topicName = topicName;
            return this;
        }

        public GetSubscriptionPlainArgs build() {
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            return $;
        }
    }

}
