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

com.pulumi.azure.containerapp.kotlin.inputs.AppTemplateAzureQueueScaleRuleArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerapp.kotlin.inputs

import com.pulumi.azure.containerapp.inputs.AppTemplateAzureQueueScaleRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property authentications One or more `authentication` blocks as defined below.
 * @property name The name of the Scaling Rule
 * @property queueLength The value of the length of the queue to trigger scaling actions.
 * @property queueName The name of the Azure Queue
 */
public data class AppTemplateAzureQueueScaleRuleArgs(
    public val authentications: Output>,
    public val name: Output,
    public val queueLength: Output,
    public val queueName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerapp.inputs.AppTemplateAzureQueueScaleRuleArgs =
        com.pulumi.azure.containerapp.inputs.AppTemplateAzureQueueScaleRuleArgs.builder()
            .authentications(
                authentications.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name.applyValue({ args0 -> args0 }))
            .queueLength(queueLength.applyValue({ args0 -> args0 }))
            .queueName(queueName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppTemplateAzureQueueScaleRuleArgs].
 */
@PulumiTagMarker
public class AppTemplateAzureQueueScaleRuleArgsBuilder internal constructor() {
    private var authentications: Output>? =
        null

    private var name: Output? = null

    private var queueLength: Output? = null

    private var queueName: Output? = null

    /**
     * @param value One or more `authentication` blocks as defined below.
     */
    @JvmName("fuyqdyjcpmfoqewj")
    public suspend
    fun authentications(`value`: Output>) {
        this.authentications = value
    }

    @JvmName("bcfcmgavgrhaufga")
    public suspend fun authentications(
        vararg
        values: Output,
    ) {
        this.authentications = Output.all(values.asList())
    }

    /**
     * @param values One or more `authentication` blocks as defined below.
     */
    @JvmName("tsupalnpvxegirph")
    public suspend
    fun authentications(values: List>) {
        this.authentications = Output.all(values)
    }

    /**
     * @param value The name of the Scaling Rule
     */
    @JvmName("tcwjjifbesdtiryl")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The value of the length of the queue to trigger scaling actions.
     */
    @JvmName("nbinlrvpgkmhsgdq")
    public suspend fun queueLength(`value`: Output) {
        this.queueLength = value
    }

    /**
     * @param value The name of the Azure Queue
     */
    @JvmName("abpuubcnhblvkabg")
    public suspend fun queueName(`value`: Output) {
        this.queueName = value
    }

    /**
     * @param value One or more `authentication` blocks as defined below.
     */
    @JvmName("yxssxlhqrvtquhsa")
    public suspend
    fun authentications(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authentications = mapped
    }

    /**
     * @param argument One or more `authentication` blocks as defined below.
     */
    @JvmName("dwxcrqsmisteibab")
    public suspend
    fun authentications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AppTemplateAzureQueueScaleRuleAuthenticationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.authentications = mapped
    }

    /**
     * @param argument One or more `authentication` blocks as defined below.
     */
    @JvmName("uqwgqhajolxpewgu")
    public suspend fun authentications(
        vararg
        argument: suspend AppTemplateAzureQueueScaleRuleAuthenticationArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            AppTemplateAzureQueueScaleRuleAuthenticationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.authentications = mapped
    }

    /**
     * @param argument One or more `authentication` blocks as defined below.
     */
    @JvmName("dkajjixlvbixfpvi")
    public suspend
    fun authentications(argument: suspend AppTemplateAzureQueueScaleRuleAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AppTemplateAzureQueueScaleRuleAuthenticationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.authentications = mapped
    }

    /**
     * @param values One or more `authentication` blocks as defined below.
     */
    @JvmName("ualcqotmialnovad")
    public suspend fun authentications(
        vararg
        values: AppTemplateAzureQueueScaleRuleAuthenticationArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authentications = mapped
    }

    /**
     * @param value The name of the Scaling Rule
     */
    @JvmName("gnndglyexswiythv")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The value of the length of the queue to trigger scaling actions.
     */
    @JvmName("rpakfhnqunnyqqkh")
    public suspend fun queueLength(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queueLength = mapped
    }

    /**
     * @param value The name of the Azure Queue
     */
    @JvmName("utbjvdsyhtyavklb")
    public suspend fun queueName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queueName = mapped
    }

    internal fun build(): AppTemplateAzureQueueScaleRuleArgs = AppTemplateAzureQueueScaleRuleArgs(
        authentications = authentications ?: throw PulumiNullFieldException("authentications"),
        name = name ?: throw PulumiNullFieldException("name"),
        queueLength = queueLength ?: throw PulumiNullFieldException("queueLength"),
        queueName = queueName ?: throw PulumiNullFieldException("queueName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy