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

com.pulumi.azurenative.scheduler.kotlin.inputs.ServiceBusQueueMessageArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.scheduler.kotlin.inputs

import com.pulumi.azurenative.scheduler.inputs.ServiceBusQueueMessageArgs.builder
import com.pulumi.azurenative.scheduler.kotlin.enums.ServiceBusTransportType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property authentication Gets or sets the Service Bus authentication.
 * @property brokeredMessageProperties Gets or sets the brokered message properties.
 * @property customMessageProperties Gets or sets the custom message properties.
 * @property message Gets or sets the message.
 * @property namespace Gets or sets the namespace.
 * @property queueName Gets or sets the queue name.
 * @property transportType Gets or sets the transport type.
 */
public data class ServiceBusQueueMessageArgs(
    public val authentication: Output? = null,
    public val brokeredMessageProperties: Output? = null,
    public val customMessageProperties: Output>? = null,
    public val message: Output? = null,
    public val namespace: Output? = null,
    public val queueName: Output? = null,
    public val transportType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.scheduler.inputs.ServiceBusQueueMessageArgs =
        com.pulumi.azurenative.scheduler.inputs.ServiceBusQueueMessageArgs.builder()
            .authentication(authentication?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .brokeredMessageProperties(
                brokeredMessageProperties?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .customMessageProperties(
                customMessageProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .message(message?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .queueName(queueName?.applyValue({ args0 -> args0 }))
            .transportType(transportType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ServiceBusQueueMessageArgs].
 */
@PulumiTagMarker
public class ServiceBusQueueMessageArgsBuilder internal constructor() {
    private var authentication: Output? = null

    private var brokeredMessageProperties: Output? = null

    private var customMessageProperties: Output>? = null

    private var message: Output? = null

    private var namespace: Output? = null

    private var queueName: Output? = null

    private var transportType: Output? = null

    /**
     * @param value Gets or sets the Service Bus authentication.
     */
    @JvmName("utsibcrpwbqqvubc")
    public suspend fun authentication(`value`: Output) {
        this.authentication = value
    }

    /**
     * @param value Gets or sets the brokered message properties.
     */
    @JvmName("pdysspqjcuvolnbu")
    public suspend fun brokeredMessageProperties(`value`: Output) {
        this.brokeredMessageProperties = value
    }

    /**
     * @param value Gets or sets the custom message properties.
     */
    @JvmName("sbexiqjjnoqqpxdf")
    public suspend fun customMessageProperties(`value`: Output>) {
        this.customMessageProperties = value
    }

    /**
     * @param value Gets or sets the message.
     */
    @JvmName("ggjchvofqlxcbuxc")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value Gets or sets the namespace.
     */
    @JvmName("iqmfbqwtkxpoindx")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value Gets or sets the queue name.
     */
    @JvmName("dptlvaadgnsvujje")
    public suspend fun queueName(`value`: Output) {
        this.queueName = value
    }

    /**
     * @param value Gets or sets the transport type.
     */
    @JvmName("kgrnbtgtajunmrjh")
    public suspend fun transportType(`value`: Output) {
        this.transportType = value
    }

    /**
     * @param value Gets or sets the Service Bus authentication.
     */
    @JvmName("pybsybummpeimaws")
    public suspend fun authentication(`value`: ServiceBusAuthenticationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param argument Gets or sets the Service Bus authentication.
     */
    @JvmName("parxuydsktpqipdh")
    public suspend fun authentication(argument: suspend ServiceBusAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceBusAuthenticationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.authentication = mapped
    }

    /**
     * @param value Gets or sets the brokered message properties.
     */
    @JvmName("uwcqfvxeesrlweya")
    public suspend fun brokeredMessageProperties(`value`: ServiceBusBrokeredMessagePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.brokeredMessageProperties = mapped
    }

    /**
     * @param argument Gets or sets the brokered message properties.
     */
    @JvmName("euatygpbrgxococv")
    public suspend fun brokeredMessageProperties(argument: suspend ServiceBusBrokeredMessagePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceBusBrokeredMessagePropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.brokeredMessageProperties = mapped
    }

    /**
     * @param value Gets or sets the custom message properties.
     */
    @JvmName("eoqatfiabgspexln")
    public suspend fun customMessageProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customMessageProperties = mapped
    }

    /**
     * @param values Gets or sets the custom message properties.
     */
    @JvmName("yohxrbwyjeetuahk")
    public fun customMessageProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customMessageProperties = mapped
    }

    /**
     * @param value Gets or sets the message.
     */
    @JvmName("tncipdpkutgnjueq")
    public suspend fun message(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.message = mapped
    }

    /**
     * @param value Gets or sets the namespace.
     */
    @JvmName("suanfksknmclvsgk")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value Gets or sets the queue name.
     */
    @JvmName("bilaalhdidhkcafd")
    public suspend fun queueName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queueName = mapped
    }

    /**
     * @param value Gets or sets the transport type.
     */
    @JvmName("spwpkdhhbqojkbpx")
    public suspend fun transportType(`value`: ServiceBusTransportType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transportType = mapped
    }

    internal fun build(): ServiceBusQueueMessageArgs = ServiceBusQueueMessageArgs(
        authentication = authentication,
        brokeredMessageProperties = brokeredMessageProperties,
        customMessageProperties = customMessageProperties,
        message = message,
        namespace = namespace,
        queueName = queueName,
        transportType = transportType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy