![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.servicebus.kotlin.inputs.GetSubscriptionPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.servicebus.kotlin.inputs
import com.pulumi.azure.servicebus.inputs.GetSubscriptionPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getSubscription.
* @property name Specifies the name of the ServiceBus Subscription.
* @property namespaceName The name of the ServiceBus Namespace.
* @property resourceGroupName Specifies the name of the Resource Group where the ServiceBus Namespace exists.
* @property topicId The ID of the ServiceBus Topic where the Service Bus Subscription exists.
* @property topicName The name of the ServiceBus Topic.
* > **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`.
*/
public data class GetSubscriptionPlainArgs(
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,
@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,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.servicebus.inputs.GetSubscriptionPlainArgs =
com.pulumi.azure.servicebus.inputs.GetSubscriptionPlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.namespaceName(namespaceName?.let({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.let({ args0 -> args0 }))
.topicId(topicId?.let({ args0 -> args0 }))
.topicName(topicName?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetSubscriptionPlainArgs].
*/
@PulumiTagMarker
public class GetSubscriptionPlainArgsBuilder internal constructor() {
private var name: String? = null
private var namespaceName: String? = null
private var resourceGroupName: String? = null
private var topicId: String? = null
private var topicName: String? = null
/**
* @param value Specifies the name of the ServiceBus Subscription.
*/
@JvmName("pvlmbmuvjlhydqhs")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value The name of the ServiceBus Namespace.
*/
@Deprecated(
message = """
`namespace_name` will be removed in favour of the property `topic_id` in version 4.0 of the
AzureRM Provider.
""",
)
@JvmName("yhrcxvasqlaplvov")
public suspend fun namespaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.namespaceName = mapped
}
/**
* @param value Specifies the name of the Resource Group where the ServiceBus Namespace exists.
*/
@Deprecated(
message = """
`resource_group_name` will be removed in favour of the property `topic_id` in version 4.0 of the
AzureRM Provider.
""",
)
@JvmName("urnrsefbphdimqbu")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.resourceGroupName = mapped
}
/**
* @param value The ID of the ServiceBus Topic where the Service Bus Subscription exists.
*/
@JvmName("goccxlewvkgtoahh")
public suspend fun topicId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.topicId = mapped
}
/**
* @param value The name of the ServiceBus Topic.
* > **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(
message = """
`topic_name` will be removed in favour of the property `topic_id` in version 4.0 of the AzureRM
Provider.
""",
)
@JvmName("rtlwpaydwynsunar")
public suspend fun topicName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.topicName = mapped
}
internal fun build(): GetSubscriptionPlainArgs = GetSubscriptionPlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
namespaceName = namespaceName,
resourceGroupName = resourceGroupName,
topicId = topicId,
topicName = topicName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy