
com.pulumi.azure.sentinel.kotlin.inputs.AlertRuleScheduledIncidentConfigurationArgs.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.sentinel.kotlin.inputs
import com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationArgs.builder
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.Boolean
import kotlin.Deprecated
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property createIncident
* @property grouping A `grouping` block as defined below.
*/
public data class AlertRuleScheduledIncidentConfigurationArgs(
@Deprecated(
message = """
The `create_incident` property has been superseded by the `create_incident_enabled` property and
will be removed in v4.0 of the AzureRM Provider
""",
)
public val createIncident: Output,
public val grouping: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationArgs =
com.pulumi.azure.sentinel.inputs.AlertRuleScheduledIncidentConfigurationArgs.builder()
.createIncident(createIncident.applyValue({ args0 -> args0 }))
.grouping(grouping.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AlertRuleScheduledIncidentConfigurationArgs].
*/
@PulumiTagMarker
public class AlertRuleScheduledIncidentConfigurationArgsBuilder internal constructor() {
private var createIncident: Output? = null
private var grouping: Output? = null
/**
* @param value
*/
@Deprecated(
message = """
The `create_incident` property has been superseded by the `create_incident_enabled` property and
will be removed in v4.0 of the AzureRM Provider
""",
)
@JvmName("mfhabccwjjuvndrs")
public suspend fun createIncident(`value`: Output) {
this.createIncident = value
}
/**
* @param value A `grouping` block as defined below.
*/
@JvmName("qgsbkiryiuhyfspe")
public suspend fun grouping(`value`: Output) {
this.grouping = value
}
/**
* @param value
*/
@Deprecated(
message = """
The `create_incident` property has been superseded by the `create_incident_enabled` property and
will be removed in v4.0 of the AzureRM Provider
""",
)
@JvmName("salgdmhqklvujkni")
public suspend fun createIncident(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.createIncident = mapped
}
/**
* @param value A `grouping` block as defined below.
*/
@JvmName("ncxvwyhkfxluvaln")
public suspend fun grouping(`value`: AlertRuleScheduledIncidentConfigurationGroupingArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.grouping = mapped
}
/**
* @param argument A `grouping` block as defined below.
*/
@JvmName("bjteukwedoqmfvta")
public suspend fun grouping(argument: suspend AlertRuleScheduledIncidentConfigurationGroupingArgsBuilder.() -> Unit) {
val toBeMapped = AlertRuleScheduledIncidentConfigurationGroupingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.grouping = mapped
}
internal fun build(): AlertRuleScheduledIncidentConfigurationArgs =
AlertRuleScheduledIncidentConfigurationArgs(
createIncident = createIncident ?: throw PulumiNullFieldException("createIncident"),
grouping = grouping ?: throw PulumiNullFieldException("grouping"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy