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

com.pulumi.azure.servicebus.inputs.GetSubscriptionArgs 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.servicebus.inputs;

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


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

    public static final GetSubscriptionArgs Empty = new GetSubscriptionArgs();

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

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

    /**
     * @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 Output namespaceName;

    /**
     * @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> namespaceName() {
        return Optional.ofNullable(this.namespaceName);
    }

    /**
     * @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 Output resourceGroupName;

    /**
     * @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> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

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

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

    /**
     * @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 Output topicName;

    /**
     * @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> topicName() {
        return Optional.ofNullable(this.topicName);
    }

    private GetSubscriptionArgs() {}

    private GetSubscriptionArgs(GetSubscriptionArgs $) {
        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(GetSubscriptionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GetSubscriptionArgs $;

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

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

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

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

        /**
         * @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 Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @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(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @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 Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @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(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

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

        /**
         * @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 Output topicName) {
            $.topicName = topicName;
            return this;
        }

        /**
         * @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(String topicName) {
            return topicName(Output.of(topicName));
        }

        public GetSubscriptionArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetSubscriptionArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy