![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.alertsmanagement.kotlin.inputs.DiagnosticsArgs.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.DiagnosticsArgs.builder
import com.pulumi.azurenative.alertsmanagement.kotlin.enums.ActionRuleStatus
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Action rule with diagnostics configuration
* @property conditions conditions on which alerts will be filtered
* @property description Description of action rule
* @property scope scope on which action rule will apply
* @property status Indicates if the given action rule is enabled or disabled
* @property type Indicates type of action rule
* Expected value is 'Diagnostics'.
*/
public data class DiagnosticsArgs(
public val conditions: Output? = null,
public val description: Output? = null,
public val scope: Output? = null,
public val status: Output>? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.alertsmanagement.inputs.DiagnosticsArgs =
com.pulumi.azurenative.alertsmanagement.inputs.DiagnosticsArgs.builder()
.conditions(conditions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.description(description?.applyValue({ args0 -> args0 }))
.scope(scope?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.status(
status?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DiagnosticsArgs].
*/
@PulumiTagMarker
public class DiagnosticsArgsBuilder internal constructor() {
private var conditions: Output? = null
private var description: Output? = null
private var scope: Output? = null
private var status: Output>? = null
private var type: Output? = null
/**
* @param value conditions on which alerts will be filtered
*/
@JvmName("biiohjytpmfionqc")
public suspend fun conditions(`value`: Output) {
this.conditions = value
}
/**
* @param value Description of action rule
*/
@JvmName("ncincyyhfgtjmhdp")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value scope on which action rule will apply
*/
@JvmName("spryqvifhgbbftep")
public suspend fun scope(`value`: Output) {
this.scope = value
}
/**
* @param value Indicates if the given action rule is enabled or disabled
*/
@JvmName("qsltmnyotsltjmqy")
public suspend fun status(`value`: Output>) {
this.status = value
}
/**
* @param value Indicates type of action rule
* Expected value is 'Diagnostics'.
*/
@JvmName("mrbkannonfxqmcsa")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value conditions on which alerts will be filtered
*/
@JvmName("kywwacdpuupdeddl")
public suspend fun conditions(`value`: ConditionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.conditions = mapped
}
/**
* @param argument conditions on which alerts will be filtered
*/
@JvmName("pmtdekdqrenktwrm")
public suspend fun conditions(argument: suspend ConditionsArgsBuilder.() -> Unit) {
val toBeMapped = ConditionsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.conditions = mapped
}
/**
* @param value Description of action rule
*/
@JvmName("xdsttesbaexwprlq")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value scope on which action rule will apply
*/
@JvmName("bcsuwkgewnkcqrkk")
public suspend fun scope(`value`: ScopeArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scope = mapped
}
/**
* @param argument scope on which action rule will apply
*/
@JvmName("noauvughslidrvwj")
public suspend fun scope(argument: suspend ScopeArgsBuilder.() -> Unit) {
val toBeMapped = ScopeArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.scope = mapped
}
/**
* @param value Indicates if the given action rule is enabled or disabled
*/
@JvmName("hihovawngaquewbx")
public suspend fun status(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Indicates if the given action rule is enabled or disabled
*/
@JvmName("hhkifdwerlwkkiuo")
public fun status(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Indicates if the given action rule is enabled or disabled
*/
@JvmName("huuaponqnpueexmo")
public fun status(`value`: ActionRuleStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Indicates type of action rule
* Expected value is 'Diagnostics'.
*/
@JvmName("vgsypxuxbhuojmlm")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): DiagnosticsArgs = DiagnosticsArgs(
conditions = conditions,
description = description,
scope = scope,
status = status,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy