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

com.pulumi.azure.servicebus.kotlin.outputs.GetSubscriptionResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.servicebus.kotlin.outputs

import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * A collection of values returned by getSubscription.
 * @property autoDeleteOnIdle The idle interval after which the topic is automatically deleted.
 * @property deadLetteringOnFilterEvaluationError Does the ServiceBus Subscription have dead letter support on filter evaluation exceptions?
 * @property deadLetteringOnMessageExpiration Does the Service Bus Subscription have dead letter support when a message expires?
 * @property defaultMessageTtl 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.
 * @property enableBatchedOperations Are batched operations enabled on this ServiceBus Subscription?
 * @property forwardDeadLetteredMessagesTo The name of a Queue or Topic to automatically forward Dead Letter messages to.
 * @property forwardTo The name of a ServiceBus Queue or ServiceBus Topic where messages are automatically forwarded.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property lockDuration The lock duration for the subscription.
 * @property maxDeliveryCount The maximum number of deliveries.
 * @property name
 * @property namespaceName
 * @property requiresSession Whether or not this ServiceBus Subscription supports session.
 * @property resourceGroupName
 * @property topicId
 * @property topicName
 */
public data class GetSubscriptionResult(
    public val autoDeleteOnIdle: String,
    public val deadLetteringOnFilterEvaluationError: Boolean,
    public val deadLetteringOnMessageExpiration: Boolean,
    public val defaultMessageTtl: String,
    public val enableBatchedOperations: Boolean,
    public val forwardDeadLetteredMessagesTo: String,
    public val forwardTo: String,
    public val id: String,
    public val lockDuration: String,
    public val maxDeliveryCount: Int,
    public val name: String,
    @Deprecated(
        message = """
  `namespace_name` will be removed in favour of the property `topic_id` in version 4.0 of the
      AzureRM Provider.
  """,
    )
    public val namespaceName: String? = null,
    public val requiresSession: Boolean,
    @Deprecated(
        message = """
  `resource_group_name` will be removed in favour of the property `topic_id` in version 4.0 of the
      AzureRM Provider.
  """,
    )
    public val resourceGroupName: String? = null,
    public val topicId: String? = null,
    @Deprecated(
        message = """
  `topic_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM
      Provider.
  """,
    )
    public val topicName: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.servicebus.outputs.GetSubscriptionResult):
            GetSubscriptionResult = GetSubscriptionResult(
            autoDeleteOnIdle = javaType.autoDeleteOnIdle(),
            deadLetteringOnFilterEvaluationError = javaType.deadLetteringOnFilterEvaluationError(),
            deadLetteringOnMessageExpiration = javaType.deadLetteringOnMessageExpiration(),
            defaultMessageTtl = javaType.defaultMessageTtl(),
            enableBatchedOperations = javaType.enableBatchedOperations(),
            forwardDeadLetteredMessagesTo = javaType.forwardDeadLetteredMessagesTo(),
            forwardTo = javaType.forwardTo(),
            id = javaType.id(),
            lockDuration = javaType.lockDuration(),
            maxDeliveryCount = javaType.maxDeliveryCount(),
            name = javaType.name(),
            namespaceName = javaType.namespaceName().map({ args0 -> args0 }).orElse(null),
            requiresSession = javaType.requiresSession(),
            resourceGroupName = javaType.resourceGroupName().map({ args0 -> args0 }).orElse(null),
            topicId = javaType.topicId().map({ args0 -> args0 }).orElse(null),
            topicName = javaType.topicName().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy