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

com.pulumi.azure.servicebus.outputs.GetSubscriptionResult 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.outputs;

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

@CustomType
public final class GetSubscriptionResult {
    /**
     * @return The idle interval after which the topic is automatically deleted.
     * 
     */
    private String autoDeleteOnIdle;
    /**
     * @return Does the ServiceBus Subscription have dead letter support on filter evaluation exceptions?
     * 
     */
    private Boolean deadLetteringOnFilterEvaluationError;
    /**
     * @return Does the Service Bus Subscription have dead letter support when a message expires?
     * 
     */
    private Boolean deadLetteringOnMessageExpiration;
    /**
     * @return The Default message timespan to live. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.
     * 
     */
    private String defaultMessageTtl;
    /**
     * @return Are batched operations enabled on this ServiceBus Subscription?
     * 
     */
    private Boolean enableBatchedOperations;
    /**
     * @return The name of a Queue or Topic to automatically forward Dead Letter messages to.
     * 
     */
    private String forwardDeadLetteredMessagesTo;
    /**
     * @return The name of a ServiceBus Queue or ServiceBus Topic where messages are automatically forwarded.
     * 
     */
    private String forwardTo;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The lock duration for the subscription.
     * 
     */
    private String lockDuration;
    /**
     * @return The maximum number of deliveries.
     * 
     */
    private Integer maxDeliveryCount;
    private String 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. */
    private @Nullable String namespaceName;
    /**
     * @return Whether or not this ServiceBus Subscription supports session.
     * 
     */
    private Boolean requiresSession;
    /**
     * @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. */
    private @Nullable String resourceGroupName;
    private @Nullable String 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. */
    private @Nullable String topicName;

    private GetSubscriptionResult() {}
    /**
     * @return The idle interval after which the topic is automatically deleted.
     * 
     */
    public String autoDeleteOnIdle() {
        return this.autoDeleteOnIdle;
    }
    /**
     * @return Does the ServiceBus Subscription have dead letter support on filter evaluation exceptions?
     * 
     */
    public Boolean deadLetteringOnFilterEvaluationError() {
        return this.deadLetteringOnFilterEvaluationError;
    }
    /**
     * @return Does the Service Bus Subscription have dead letter support when a message expires?
     * 
     */
    public Boolean deadLetteringOnMessageExpiration() {
        return this.deadLetteringOnMessageExpiration;
    }
    /**
     * @return The Default message timespan to live. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.
     * 
     */
    public String defaultMessageTtl() {
        return this.defaultMessageTtl;
    }
    /**
     * @return Are batched operations enabled on this ServiceBus Subscription?
     * 
     */
    public Boolean enableBatchedOperations() {
        return this.enableBatchedOperations;
    }
    /**
     * @return The name of a Queue or Topic to automatically forward Dead Letter messages to.
     * 
     */
    public String forwardDeadLetteredMessagesTo() {
        return this.forwardDeadLetteredMessagesTo;
    }
    /**
     * @return The name of a ServiceBus Queue or ServiceBus Topic where messages are automatically forwarded.
     * 
     */
    public String forwardTo() {
        return this.forwardTo;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The lock duration for the subscription.
     * 
     */
    public String lockDuration() {
        return this.lockDuration;
    }
    /**
     * @return The maximum number of deliveries.
     * 
     */
    public Integer maxDeliveryCount() {
        return this.maxDeliveryCount;
    }
    public String 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. */
    public Optional namespaceName() {
        return Optional.ofNullable(this.namespaceName);
    }
    /**
     * @return Whether or not this ServiceBus Subscription supports session.
     * 
     */
    public Boolean requiresSession() {
        return this.requiresSession;
    }
    /**
     * @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);
    }
    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. */
    public Optional topicName() {
        return Optional.ofNullable(this.topicName);
    }

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

    public static Builder builder(GetSubscriptionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String autoDeleteOnIdle;
        private Boolean deadLetteringOnFilterEvaluationError;
        private Boolean deadLetteringOnMessageExpiration;
        private String defaultMessageTtl;
        private Boolean enableBatchedOperations;
        private String forwardDeadLetteredMessagesTo;
        private String forwardTo;
        private String id;
        private String lockDuration;
        private Integer maxDeliveryCount;
        private String name;
        private @Nullable String namespaceName;
        private Boolean requiresSession;
        private @Nullable String resourceGroupName;
        private @Nullable String topicId;
        private @Nullable String topicName;
        public Builder() {}
        public Builder(GetSubscriptionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoDeleteOnIdle = defaults.autoDeleteOnIdle;
    	      this.deadLetteringOnFilterEvaluationError = defaults.deadLetteringOnFilterEvaluationError;
    	      this.deadLetteringOnMessageExpiration = defaults.deadLetteringOnMessageExpiration;
    	      this.defaultMessageTtl = defaults.defaultMessageTtl;
    	      this.enableBatchedOperations = defaults.enableBatchedOperations;
    	      this.forwardDeadLetteredMessagesTo = defaults.forwardDeadLetteredMessagesTo;
    	      this.forwardTo = defaults.forwardTo;
    	      this.id = defaults.id;
    	      this.lockDuration = defaults.lockDuration;
    	      this.maxDeliveryCount = defaults.maxDeliveryCount;
    	      this.name = defaults.name;
    	      this.namespaceName = defaults.namespaceName;
    	      this.requiresSession = defaults.requiresSession;
    	      this.resourceGroupName = defaults.resourceGroupName;
    	      this.topicId = defaults.topicId;
    	      this.topicName = defaults.topicName;
        }

        @CustomType.Setter
        public Builder autoDeleteOnIdle(String autoDeleteOnIdle) {
            if (autoDeleteOnIdle == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "autoDeleteOnIdle");
            }
            this.autoDeleteOnIdle = autoDeleteOnIdle;
            return this;
        }
        @CustomType.Setter
        public Builder deadLetteringOnFilterEvaluationError(Boolean deadLetteringOnFilterEvaluationError) {
            if (deadLetteringOnFilterEvaluationError == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "deadLetteringOnFilterEvaluationError");
            }
            this.deadLetteringOnFilterEvaluationError = deadLetteringOnFilterEvaluationError;
            return this;
        }
        @CustomType.Setter
        public Builder deadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) {
            if (deadLetteringOnMessageExpiration == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "deadLetteringOnMessageExpiration");
            }
            this.deadLetteringOnMessageExpiration = deadLetteringOnMessageExpiration;
            return this;
        }
        @CustomType.Setter
        public Builder defaultMessageTtl(String defaultMessageTtl) {
            if (defaultMessageTtl == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "defaultMessageTtl");
            }
            this.defaultMessageTtl = defaultMessageTtl;
            return this;
        }
        @CustomType.Setter
        public Builder enableBatchedOperations(Boolean enableBatchedOperations) {
            if (enableBatchedOperations == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "enableBatchedOperations");
            }
            this.enableBatchedOperations = enableBatchedOperations;
            return this;
        }
        @CustomType.Setter
        public Builder forwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo) {
            if (forwardDeadLetteredMessagesTo == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "forwardDeadLetteredMessagesTo");
            }
            this.forwardDeadLetteredMessagesTo = forwardDeadLetteredMessagesTo;
            return this;
        }
        @CustomType.Setter
        public Builder forwardTo(String forwardTo) {
            if (forwardTo == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "forwardTo");
            }
            this.forwardTo = forwardTo;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder lockDuration(String lockDuration) {
            if (lockDuration == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "lockDuration");
            }
            this.lockDuration = lockDuration;
            return this;
        }
        @CustomType.Setter
        public Builder maxDeliveryCount(Integer maxDeliveryCount) {
            if (maxDeliveryCount == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "maxDeliveryCount");
            }
            this.maxDeliveryCount = maxDeliveryCount;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder namespaceName(@Nullable String namespaceName) {

            this.namespaceName = namespaceName;
            return this;
        }
        @CustomType.Setter
        public Builder requiresSession(Boolean requiresSession) {
            if (requiresSession == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionResult", "requiresSession");
            }
            this.requiresSession = requiresSession;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGroupName(@Nullable String resourceGroupName) {

            this.resourceGroupName = resourceGroupName;
            return this;
        }
        @CustomType.Setter
        public Builder topicId(@Nullable String topicId) {

            this.topicId = topicId;
            return this;
        }
        @CustomType.Setter
        public Builder topicName(@Nullable String topicName) {

            this.topicName = topicName;
            return this;
        }
        public GetSubscriptionResult build() {
            final var _resultValue = new GetSubscriptionResult();
            _resultValue.autoDeleteOnIdle = autoDeleteOnIdle;
            _resultValue.deadLetteringOnFilterEvaluationError = deadLetteringOnFilterEvaluationError;
            _resultValue.deadLetteringOnMessageExpiration = deadLetteringOnMessageExpiration;
            _resultValue.defaultMessageTtl = defaultMessageTtl;
            _resultValue.enableBatchedOperations = enableBatchedOperations;
            _resultValue.forwardDeadLetteredMessagesTo = forwardDeadLetteredMessagesTo;
            _resultValue.forwardTo = forwardTo;
            _resultValue.id = id;
            _resultValue.lockDuration = lockDuration;
            _resultValue.maxDeliveryCount = maxDeliveryCount;
            _resultValue.name = name;
            _resultValue.namespaceName = namespaceName;
            _resultValue.requiresSession = requiresSession;
            _resultValue.resourceGroupName = resourceGroupName;
            _resultValue.topicId = topicId;
            _resultValue.topicName = topicName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy