![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.eventgrid.kotlin.inputs.DeliveryConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.eventgrid.kotlin.inputs
import com.pulumi.azurenative.eventgrid.inputs.DeliveryConfigurationArgs.builder
import com.pulumi.azurenative.eventgrid.kotlin.enums.DeliveryMode
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Properties of the delivery configuration information of the event subscription.
* @property deliveryMode Delivery mode of the event subscription.
* @property queue This property should be populated when deliveryMode is queue and represents information about the queue subscription.
*/
public data class DeliveryConfigurationArgs(
public val deliveryMode: Output>? = null,
public val queue: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.eventgrid.inputs.DeliveryConfigurationArgs =
com.pulumi.azurenative.eventgrid.inputs.DeliveryConfigurationArgs.builder()
.deliveryMode(
deliveryMode?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.queue(queue?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DeliveryConfigurationArgs].
*/
@PulumiTagMarker
public class DeliveryConfigurationArgsBuilder internal constructor() {
private var deliveryMode: Output>? = null
private var queue: Output? = null
/**
* @param value Delivery mode of the event subscription.
*/
@JvmName("updtwbgqkldmqffr")
public suspend fun deliveryMode(`value`: Output>) {
this.deliveryMode = value
}
/**
* @param value This property should be populated when deliveryMode is queue and represents information about the queue subscription.
*/
@JvmName("loilwrqygkvqrqjf")
public suspend fun queue(`value`: Output) {
this.queue = value
}
/**
* @param value Delivery mode of the event subscription.
*/
@JvmName("cfhjyidvjoxwvfso")
public suspend fun deliveryMode(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deliveryMode = mapped
}
/**
* @param value Delivery mode of the event subscription.
*/
@JvmName("nudgkgbyyulnuxmu")
public fun deliveryMode(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.deliveryMode = mapped
}
/**
* @param value Delivery mode of the event subscription.
*/
@JvmName("xrrydachcvmyqhgd")
public fun deliveryMode(`value`: DeliveryMode) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.deliveryMode = mapped
}
/**
* @param value This property should be populated when deliveryMode is queue and represents information about the queue subscription.
*/
@JvmName("vhyomhbpqxtlmapp")
public suspend fun queue(`value`: QueueInfoArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.queue = mapped
}
/**
* @param argument This property should be populated when deliveryMode is queue and represents information about the queue subscription.
*/
@JvmName("nilmwglrwjbohyqv")
public suspend fun queue(argument: suspend QueueInfoArgsBuilder.() -> Unit) {
val toBeMapped = QueueInfoArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.queue = mapped
}
internal fun build(): DeliveryConfigurationArgs = DeliveryConfigurationArgs(
deliveryMode = deliveryMode,
queue = queue,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy