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

com.pulumi.azure.servicebus.kotlin.inputs.GetTopicPlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.servicebus.kotlin.inputs

import com.pulumi.azure.servicebus.inputs.GetTopicPlainArgs.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 getTopic.
 * @property name The name of this Service Bus Topic.
 * @property namespaceId The ID of the ServiceBus Namespace where the Service Bus Topic exists.
 * @property namespaceName The name of the Service Bus Namespace.
 * @property resourceGroupName The name of the Resource Group where the Service Bus Topic exists.
 * > **Note:** `namespace_name` and `resource_group_name` has been deprecated and will be removed in version 4.0 of the provider in favour of `namespace_id`.
 */
public data class GetTopicPlainArgs(
    public val name: String,
    public val namespaceId: String? = null,
    @Deprecated(
        message = """
  `namespace_name` will be removed in favour of the property `namespace_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 `namespace_id` in version 4.0 of
      the AzureRM Provider.
  """,
    )
    public val resourceGroupName: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.servicebus.inputs.GetTopicPlainArgs =
        com.pulumi.azure.servicebus.inputs.GetTopicPlainArgs.builder()
            .name(name.let({ args0 -> args0 }))
            .namespaceId(namespaceId?.let({ args0 -> args0 }))
            .namespaceName(namespaceName?.let({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetTopicPlainArgs].
 */
@PulumiTagMarker
public class GetTopicPlainArgsBuilder internal constructor() {
    private var name: String? = null

    private var namespaceId: String? = null

    private var namespaceName: String? = null

    private var resourceGroupName: String? = null

    /**
     * @param value The name of this Service Bus Topic.
     */
    @JvmName("mdotimqbjkqfnvem")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value The ID of the ServiceBus Namespace where the Service Bus Topic exists.
     */
    @JvmName("rknuvgvtyurpnsqw")
    public suspend fun namespaceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.namespaceId = mapped
    }

    /**
     * @param value The name of the Service Bus Namespace.
     */
    @Deprecated(
        message = """
  `namespace_name` will be removed in favour of the property `namespace_id` in version 4.0 of the
      AzureRM Provider.
  """,
    )
    @JvmName("pfftrouiwgkremnr")
    public suspend fun namespaceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.namespaceName = mapped
    }

    /**
     * @param value The name of the Resource Group where the Service Bus Topic exists.
     * > **Note:** `namespace_name` and `resource_group_name` has been deprecated and will be removed in version 4.0 of the provider in favour of `namespace_id`.
     */
    @Deprecated(
        message = """
  `resource_group_name` will be removed in favour of the property `namespace_id` in version 4.0 of
      the AzureRM Provider.
  """,
    )
    @JvmName("qpfmwimhnwbaosft")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.resourceGroupName = mapped
    }

    internal fun build(): GetTopicPlainArgs = GetTopicPlainArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        namespaceId = namespaceId,
        namespaceName = namespaceName,
        resourceGroupName = resourceGroupName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy