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

com.pulumi.gcp.monitoring.kotlin.inputs.SloWindowsBasedSliGoodTotalRatioThresholdArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.monitoring.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.monitoring.inputs.SloWindowsBasedSliGoodTotalRatioThresholdArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property basicSliPerformance Basic SLI to evaluate to judge window quality.
 * Structure is documented below.
 * @property performance Request-based SLI to evaluate to judge window quality.
 * Structure is documented below.
 * @property threshold If window performance >= threshold, the window is counted
 * as good.
 */
public data class SloWindowsBasedSliGoodTotalRatioThresholdArgs(
    public val basicSliPerformance: Output? = null,
    public val performance: Output? = null,
    public val threshold: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.SloWindowsBasedSliGoodTotalRatioThresholdArgs =
        com.pulumi.gcp.monitoring.inputs.SloWindowsBasedSliGoodTotalRatioThresholdArgs.builder()
            .basicSliPerformance(
                basicSliPerformance?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .performance(performance?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .threshold(threshold?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SloWindowsBasedSliGoodTotalRatioThresholdArgs].
 */
@PulumiTagMarker
public class SloWindowsBasedSliGoodTotalRatioThresholdArgsBuilder internal constructor() {
    private var basicSliPerformance:
        Output? = null

    private var performance: Output? = null

    private var threshold: Output? = null

    /**
     * @param value Basic SLI to evaluate to judge window quality.
     * Structure is documented below.
     */
    @JvmName("ghdomtbuilwftali")
    public suspend fun basicSliPerformance(`value`: Output) {
        this.basicSliPerformance = value
    }

    /**
     * @param value Request-based SLI to evaluate to judge window quality.
     * Structure is documented below.
     */
    @JvmName("wmgwhmwxisyprmus")
    public suspend fun performance(`value`: Output) {
        this.performance = value
    }

    /**
     * @param value If window performance >= threshold, the window is counted
     * as good.
     */
    @JvmName("pgkkhcmeefeobptm")
    public suspend fun threshold(`value`: Output) {
        this.threshold = value
    }

    /**
     * @param value Basic SLI to evaluate to judge window quality.
     * Structure is documented below.
     */
    @JvmName("fxgvwaqcjucyeedv")
    public suspend fun basicSliPerformance(`value`: SloWindowsBasedSliGoodTotalRatioThresholdBasicSliPerformanceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.basicSliPerformance = mapped
    }

    /**
     * @param argument Basic SLI to evaluate to judge window quality.
     * Structure is documented below.
     */
    @JvmName("vfihadsypvhqwtje")
    public suspend fun basicSliPerformance(argument: suspend SloWindowsBasedSliGoodTotalRatioThresholdBasicSliPerformanceArgsBuilder.() -> Unit) {
        val toBeMapped =
            SloWindowsBasedSliGoodTotalRatioThresholdBasicSliPerformanceArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.basicSliPerformance = mapped
    }

    /**
     * @param value Request-based SLI to evaluate to judge window quality.
     * Structure is documented below.
     */
    @JvmName("sgfqcohpsuyctcvg")
    public suspend fun performance(`value`: SloWindowsBasedSliGoodTotalRatioThresholdPerformanceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.performance = mapped
    }

    /**
     * @param argument Request-based SLI to evaluate to judge window quality.
     * Structure is documented below.
     */
    @JvmName("wyakrpwtchhtncof")
    public suspend fun performance(argument: suspend SloWindowsBasedSliGoodTotalRatioThresholdPerformanceArgsBuilder.() -> Unit) {
        val toBeMapped = SloWindowsBasedSliGoodTotalRatioThresholdPerformanceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.performance = mapped
    }

    /**
     * @param value If window performance >= threshold, the window is counted
     * as good.
     */
    @JvmName("vvawjbhkqiireamv")
    public suspend fun threshold(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.threshold = mapped
    }

    internal fun build(): SloWindowsBasedSliGoodTotalRatioThresholdArgs =
        SloWindowsBasedSliGoodTotalRatioThresholdArgs(
            basicSliPerformance = basicSliPerformance,
            performance = performance,
            threshold = threshold,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy