![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.security.kotlin.inputs.SecurityContactPropertiesAlertNotificationsArgs.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.security.kotlin.inputs
import com.pulumi.azurenative.security.inputs.SecurityContactPropertiesAlertNotificationsArgs.builder
import com.pulumi.azurenative.security.kotlin.enums.MinimalSeverity
import com.pulumi.azurenative.security.kotlin.enums.State
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.jvm.JvmName
/**
* Defines whether to send email notifications about new security alerts
* @property minimalSeverity Defines the minimal alert severity which will be sent as email notifications
* @property state Defines if email notifications will be sent about new security alerts
*/
public data class SecurityContactPropertiesAlertNotificationsArgs(
public val minimalSeverity: Output>? = null,
public val state: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.security.inputs.SecurityContactPropertiesAlertNotificationsArgs =
com.pulumi.azurenative.security.inputs.SecurityContactPropertiesAlertNotificationsArgs.builder()
.minimalSeverity(
minimalSeverity?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.state(
state?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [SecurityContactPropertiesAlertNotificationsArgs].
*/
@PulumiTagMarker
public class SecurityContactPropertiesAlertNotificationsArgsBuilder internal constructor() {
private var minimalSeverity: Output>? = null
private var state: Output>? = null
/**
* @param value Defines the minimal alert severity which will be sent as email notifications
*/
@JvmName("lneehmedbncvljtu")
public suspend fun minimalSeverity(`value`: Output>) {
this.minimalSeverity = value
}
/**
* @param value Defines if email notifications will be sent about new security alerts
*/
@JvmName("naejjoldmwltgash")
public suspend fun state(`value`: Output>) {
this.state = value
}
/**
* @param value Defines the minimal alert severity which will be sent as email notifications
*/
@JvmName("acgnybhlywtpqxnf")
public suspend fun minimalSeverity(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minimalSeverity = mapped
}
/**
* @param value Defines the minimal alert severity which will be sent as email notifications
*/
@JvmName("ylnclsqfuplknvda")
public fun minimalSeverity(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minimalSeverity = mapped
}
/**
* @param value Defines the minimal alert severity which will be sent as email notifications
*/
@JvmName("mgbdgxvnfpxcvgfl")
public fun minimalSeverity(`value`: MinimalSeverity) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minimalSeverity = mapped
}
/**
* @param value Defines if email notifications will be sent about new security alerts
*/
@JvmName("uladrlhlphycgbvb")
public suspend fun state(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value Defines if email notifications will be sent about new security alerts
*/
@JvmName("tfbpomfauixtkqrb")
public fun state(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value Defines if email notifications will be sent about new security alerts
*/
@JvmName("xglxbmmrcxaoeooo")
public fun state(`value`: State) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): SecurityContactPropertiesAlertNotificationsArgs =
SecurityContactPropertiesAlertNotificationsArgs(
minimalSeverity = minimalSeverity,
state = state,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy