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

com.pulumi.azurenative.iotoperations.kotlin.inputs.SubscriberQueueLimitArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.SubscriberQueueLimitArgs.builder
import com.pulumi.azurenative.iotoperations.kotlin.enums.SubscriberMessageDropStrategy
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 kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The settings of Subscriber Queue Limit.
 * @property length The maximum length of the queue before messages start getting dropped.
 * @property strategy The strategy to use for dropping messages from the queue.
 */
public data class SubscriberQueueLimitArgs(
    public val length: Output? = null,
    public val strategy: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.SubscriberQueueLimitArgs =
        com.pulumi.azurenative.iotoperations.inputs.SubscriberQueueLimitArgs.builder()
            .length(length?.applyValue({ args0 -> args0 }))
            .strategy(
                strategy?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [SubscriberQueueLimitArgs].
 */
@PulumiTagMarker
public class SubscriberQueueLimitArgsBuilder internal constructor() {
    private var length: Output? = null

    private var strategy: Output>? = null

    /**
     * @param value The maximum length of the queue before messages start getting dropped.
     */
    @JvmName("nuubsotyeocwvjoh")
    public suspend fun length(`value`: Output) {
        this.length = value
    }

    /**
     * @param value The strategy to use for dropping messages from the queue.
     */
    @JvmName("opnrblbbibtnaxfi")
    public suspend fun strategy(`value`: Output>) {
        this.strategy = value
    }

    /**
     * @param value The maximum length of the queue before messages start getting dropped.
     */
    @JvmName("iotgkmwcqcgyvwoe")
    public suspend fun length(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.length = mapped
    }

    /**
     * @param value The strategy to use for dropping messages from the queue.
     */
    @JvmName("ufobmugoevyblfhl")
    public suspend fun strategy(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.strategy = mapped
    }

    /**
     * @param value The strategy to use for dropping messages from the queue.
     */
    @JvmName("xxbyimdkjluehqgx")
    public fun strategy(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.strategy = mapped
    }

    /**
     * @param value The strategy to use for dropping messages from the queue.
     */
    @JvmName("pcfxfotgcghmjcfx")
    public fun strategy(`value`: SubscriberMessageDropStrategy) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.strategy = mapped
    }

    internal fun build(): SubscriberQueueLimitArgs = SubscriberQueueLimitArgs(
        length = length,
        strategy = strategy,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy