All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.monitoring.kotlin.inputs.ActivityLogAlertCriteriaServiceHealthArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaServiceHealthArgs.builder
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

/**
 *
 * @property events Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
 * @property locations Locations this alert will monitor. For example, `West Europe`.
 * @property services Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
 */
public data class ActivityLogAlertCriteriaServiceHealthArgs(
    public val events: Output>? = null,
    public val locations: Output>? = null,
    public val services: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaServiceHealthArgs =
        com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaServiceHealthArgs.builder()
            .events(events?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .locations(locations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .services(services?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ActivityLogAlertCriteriaServiceHealthArgs].
 */
@PulumiTagMarker
public class ActivityLogAlertCriteriaServiceHealthArgsBuilder internal constructor() {
    private var events: Output>? = null

    private var locations: Output>? = null

    private var services: Output>? = null

    /**
     * @param value Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
     */
    @JvmName("hcrlfxhspyddigle")
    public suspend fun events(`value`: Output>) {
        this.events = value
    }

    @JvmName("kkgbhddgmwvnomhn")
    public suspend fun events(vararg values: Output) {
        this.events = Output.all(values.asList())
    }

    /**
     * @param values Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
     */
    @JvmName("ndlqxtrdkhvpbckl")
    public suspend fun events(values: List>) {
        this.events = Output.all(values)
    }

    /**
     * @param value Locations this alert will monitor. For example, `West Europe`.
     */
    @JvmName("baejfjwqgghhiawt")
    public suspend fun locations(`value`: Output>) {
        this.locations = value
    }

    @JvmName("bixikjqdyweyemeo")
    public suspend fun locations(vararg values: Output) {
        this.locations = Output.all(values.asList())
    }

    /**
     * @param values Locations this alert will monitor. For example, `West Europe`.
     */
    @JvmName("fwftkjrcocbsstga")
    public suspend fun locations(values: List>) {
        this.locations = Output.all(values)
    }

    /**
     * @param value Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
     */
    @JvmName("urmbpuavsciormeu")
    public suspend fun services(`value`: Output>) {
        this.services = value
    }

    @JvmName("mcmqsesxpmasjcoj")
    public suspend fun services(vararg values: Output) {
        this.services = Output.all(values.asList())
    }

    /**
     * @param values Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
     */
    @JvmName("owajnlkssqutbbmf")
    public suspend fun services(values: List>) {
        this.services = Output.all(values)
    }

    /**
     * @param value Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
     */
    @JvmName("uraoclvgesvhhcde")
    public suspend fun events(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @param values Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
     */
    @JvmName("njjfpaehlohsbgkp")
    public suspend fun events(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @param value Locations this alert will monitor. For example, `West Europe`.
     */
    @JvmName("xhjumltymqclxcna")
    public suspend fun locations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param values Locations this alert will monitor. For example, `West Europe`.
     */
    @JvmName("btiegxiiapjdxjry")
    public suspend fun locations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param value Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
     */
    @JvmName("rwqrmprxepuysfww")
    public suspend fun services(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.services = mapped
    }

    /**
     * @param values Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.
     */
    @JvmName("xruukdlvpqqbpfbj")
    public suspend fun services(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.services = mapped
    }

    internal fun build(): ActivityLogAlertCriteriaServiceHealthArgs =
        ActivityLogAlertCriteriaServiceHealthArgs(
            events = events,
            locations = locations,
            services = services,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy