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

com.pulumi.azurenative.web.kotlin.inputs.RequestsBasedTriggerArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.web.kotlin.inputs

import com.pulumi.azurenative.web.inputs.RequestsBasedTriggerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Trigger based on total requests.
 * @property count Request Count.
 * @property timeInterval Time interval.
 */
public data class RequestsBasedTriggerArgs(
    public val count: Output? = null,
    public val timeInterval: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.web.inputs.RequestsBasedTriggerArgs =
        com.pulumi.azurenative.web.inputs.RequestsBasedTriggerArgs.builder()
            .count(count?.applyValue({ args0 -> args0 }))
            .timeInterval(timeInterval?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RequestsBasedTriggerArgs].
 */
@PulumiTagMarker
public class RequestsBasedTriggerArgsBuilder internal constructor() {
    private var count: Output? = null

    private var timeInterval: Output? = null

    /**
     * @param value Request Count.
     */
    @JvmName("lwdliqjviljdljji")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value Time interval.
     */
    @JvmName("ydturlxlgvrbgrgy")
    public suspend fun timeInterval(`value`: Output) {
        this.timeInterval = value
    }

    /**
     * @param value Request Count.
     */
    @JvmName("xmkwvhlqfwwitowo")
    public suspend fun count(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value Time interval.
     */
    @JvmName("simmdbdvjopngasw")
    public suspend fun timeInterval(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeInterval = mapped
    }

    internal fun build(): RequestsBasedTriggerArgs = RequestsBasedTriggerArgs(
        count = count,
        timeInterval = timeInterval,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy