com.pulumi.azure.monitoring.kotlin.inputs.AlertPrometheusRuleGroupRuleAlertResolutionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.monitoring.kotlin.inputs
import com.pulumi.azure.monitoring.inputs.AlertPrometheusRuleGroupRuleAlertResolutionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property autoResolved Is the alert auto-resolution? Possible values are `true` and `false`.
* @property timeToResolve Specifies the alert auto-resolution interval, represented in ISO 8601 duration format.
*/
public data class AlertPrometheusRuleGroupRuleAlertResolutionArgs(
public val autoResolved: Output? = null,
public val timeToResolve: Output? = null,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.monitoring.inputs.AlertPrometheusRuleGroupRuleAlertResolutionArgs =
com.pulumi.azure.monitoring.inputs.AlertPrometheusRuleGroupRuleAlertResolutionArgs.builder()
.autoResolved(autoResolved?.applyValue({ args0 -> args0 }))
.timeToResolve(timeToResolve?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AlertPrometheusRuleGroupRuleAlertResolutionArgs].
*/
@PulumiTagMarker
public class AlertPrometheusRuleGroupRuleAlertResolutionArgsBuilder internal constructor() {
private var autoResolved: Output? = null
private var timeToResolve: Output? = null
/**
* @param value Is the alert auto-resolution? Possible values are `true` and `false`.
*/
@JvmName("iwisgslqsghqfgjl")
public suspend fun autoResolved(`value`: Output) {
this.autoResolved = value
}
/**
* @param value Specifies the alert auto-resolution interval, represented in ISO 8601 duration format.
*/
@JvmName("jrtqjkhxoojnlkvg")
public suspend fun timeToResolve(`value`: Output) {
this.timeToResolve = value
}
/**
* @param value Is the alert auto-resolution? Possible values are `true` and `false`.
*/
@JvmName("wifpewdeivpfngah")
public suspend fun autoResolved(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoResolved = mapped
}
/**
* @param value Specifies the alert auto-resolution interval, represented in ISO 8601 duration format.
*/
@JvmName("cxyvhhxloosmwugg")
public suspend fun timeToResolve(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeToResolve = mapped
}
internal fun build(): AlertPrometheusRuleGroupRuleAlertResolutionArgs =
AlertPrometheusRuleGroupRuleAlertResolutionArgs(
autoResolved = autoResolved,
timeToResolve = timeToResolve,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy