![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.alertsmanagement.kotlin.inputs.ConditionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.alertsmanagement.kotlin.inputs
import com.pulumi.azurenative.alertsmanagement.inputs.ConditionArgs.builder
import com.pulumi.azurenative.alertsmanagement.kotlin.enums.Field
import com.pulumi.azurenative.alertsmanagement.kotlin.enums.Operator
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Condition to trigger an alert processing rule.
* @property field Field for a given condition.
* @property operator Operator for a given condition.
* @property values List of values to match for a given condition.
*/
public data class ConditionArgs(
public val `field`: Output>? = null,
public val `operator`: Output>? = null,
public val values: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.alertsmanagement.inputs.ConditionArgs =
com.pulumi.azurenative.alertsmanagement.inputs.ConditionArgs.builder()
.`field`(
`field`?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.`operator`(
`operator`?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.values(values?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [ConditionArgs].
*/
@PulumiTagMarker
public class ConditionArgsBuilder internal constructor() {
private var `field`: Output>? = null
private var `operator`: Output>? = null
private var values: Output>? = null
/**
* @param value Field for a given condition.
*/
@JvmName("gvrxxwownvhdbrno")
public suspend fun `field`(`value`: Output>) {
this.`field` = value
}
/**
* @param value Operator for a given condition.
*/
@JvmName("whwaxkqpbkuobddb")
public suspend fun `operator`(`value`: Output>) {
this.`operator` = value
}
/**
* @param value List of values to match for a given condition.
*/
@JvmName("iniqjsmdkuhigdfs")
public suspend fun values(`value`: Output>) {
this.values = value
}
@JvmName("jhjieguodddnukqj")
public suspend fun values(vararg values: Output) {
this.values = Output.all(values.asList())
}
/**
* @param values List of values to match for a given condition.
*/
@JvmName("xnfonghpswypwpnf")
public suspend fun values(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy