![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.alertsmanagement.kotlin.inputs.SuppressionConfigArgs.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.SuppressionConfigArgs.builder
import com.pulumi.azurenative.alertsmanagement.kotlin.enums.SuppressionType
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
/**
* Suppression logic for a given action rule
* @property recurrenceType Specifies when the suppression should be applied
* @property schedule suppression schedule configuration
*/
public data class SuppressionConfigArgs(
public val recurrenceType: Output>,
public val schedule: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.alertsmanagement.inputs.SuppressionConfigArgs =
com.pulumi.azurenative.alertsmanagement.inputs.SuppressionConfigArgs.builder()
.recurrenceType(
recurrenceType.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [SuppressionConfigArgs].
*/
@PulumiTagMarker
public class SuppressionConfigArgsBuilder internal constructor() {
private var recurrenceType: Output>? = null
private var schedule: Output? = null
/**
* @param value Specifies when the suppression should be applied
*/
@JvmName("ifttuyhfqijxqkvv")
public suspend fun recurrenceType(`value`: Output>) {
this.recurrenceType = value
}
/**
* @param value suppression schedule configuration
*/
@JvmName("dumeniyrjgynvydw")
public suspend fun schedule(`value`: Output) {
this.schedule = value
}
/**
* @param value Specifies when the suppression should be applied
*/
@JvmName("qspcrvkgutwyhjqg")
public suspend fun recurrenceType(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.recurrenceType = mapped
}
/**
* @param value Specifies when the suppression should be applied
*/
@JvmName("ksqxxcvyqriycuwr")
public fun recurrenceType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.recurrenceType = mapped
}
/**
* @param value Specifies when the suppression should be applied
*/
@JvmName("lnvnxvknjwwgimbq")
public fun recurrenceType(`value`: SuppressionType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.recurrenceType = mapped
}
/**
* @param value suppression schedule configuration
*/
@JvmName("fdusaqjekmsgoelx")
public suspend fun schedule(`value`: SuppressionScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schedule = mapped
}
/**
* @param argument suppression schedule configuration
*/
@JvmName("hpqhjkagsibqarqq")
public suspend fun schedule(argument: suspend SuppressionScheduleArgsBuilder.() -> Unit) {
val toBeMapped = SuppressionScheduleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.schedule = mapped
}
internal fun build(): SuppressionConfigArgs = SuppressionConfigArgs(
recurrenceType = recurrenceType ?: throw PulumiNullFieldException("recurrenceType"),
schedule = schedule,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy