com.pulumi.gcp.monitoring.kotlin.inputs.SloBasicSliLatencyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.SloBasicSliLatencyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property threshold A duration string, e.g. 10s.
* Good service is defined to be the count of requests made to
* this service that return in no more than threshold.
*/
public data class SloBasicSliLatencyArgs(
public val threshold: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.monitoring.inputs.SloBasicSliLatencyArgs =
com.pulumi.gcp.monitoring.inputs.SloBasicSliLatencyArgs.builder()
.threshold(threshold.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SloBasicSliLatencyArgs].
*/
@PulumiTagMarker
public class SloBasicSliLatencyArgsBuilder internal constructor() {
private var threshold: Output? = null
/**
* @param value A duration string, e.g. 10s.
* Good service is defined to be the count of requests made to
* this service that return in no more than threshold.
*/
@JvmName("ohaktsepcpdqmipc")
public suspend fun threshold(`value`: Output) {
this.threshold = value
}
/**
* @param value A duration string, e.g. 10s.
* Good service is defined to be the count of requests made to
* this service that return in no more than threshold.
*/
@JvmName("nxkgwfgolwajouml")
public suspend fun threshold(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.threshold = mapped
}
internal fun build(): SloBasicSliLatencyArgs = SloBasicSliLatencyArgs(
threshold = threshold ?: throw PulumiNullFieldException("threshold"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy