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

com.pulumi.azurenative.web.kotlin.inputs.SlowRequestsBasedTriggerArgs.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.SlowRequestsBasedTriggerArgs.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 request execution time.
 * @property count Request Count.
 * @property path Request Path.
 * @property timeInterval Time interval.
 * @property timeTaken Time taken.
 */
public data class SlowRequestsBasedTriggerArgs(
    public val count: Output? = null,
    public val path: Output? = null,
    public val timeInterval: Output? = null,
    public val timeTaken: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.web.inputs.SlowRequestsBasedTriggerArgs =
        com.pulumi.azurenative.web.inputs.SlowRequestsBasedTriggerArgs.builder()
            .count(count?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .timeInterval(timeInterval?.applyValue({ args0 -> args0 }))
            .timeTaken(timeTaken?.applyValue({ args0 -> args0 })).build()
}

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

    private var path: Output? = null

    private var timeInterval: Output? = null

    private var timeTaken: Output? = null

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

    /**
     * @param value Request Path.
     */
    @JvmName("furxejhkidbqabgm")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

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

    /**
     * @param value Time taken.
     */
    @JvmName("qrjyktgouquoqvfi")
    public suspend fun timeTaken(`value`: Output) {
        this.timeTaken = value
    }

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

    /**
     * @param value Request Path.
     */
    @JvmName("bxobffbqvaicnlpo")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

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

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

    internal fun build(): SlowRequestsBasedTriggerArgs = SlowRequestsBasedTriggerArgs(
        count = count,
        path = path,
        timeInterval = timeInterval,
        timeTaken = timeTaken,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy