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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaResourceHealthArgs.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 currents The current resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
 * @property previouses The previous resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
 * @property reasons The reason that will log an alert. Possible values are `PlatformInitiated` (such as a problem with the resource in an affected region of an Azure incident), `UserInitiated` (such as a shutdown request of a VM) and `Unknown`.
 */
public data class ActivityLogAlertCriteriaResourceHealthArgs(
    public val currents: Output>? = null,
    public val previouses: Output>? = null,
    public val reasons: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaResourceHealthArgs =
        com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaResourceHealthArgs.builder()
            .currents(currents?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .previouses(previouses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .reasons(reasons?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var previouses: Output>? = null

    private var reasons: Output>? = null

    /**
     * @param value The current resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
     */
    @JvmName("xpoomibkyfuxysxv")
    public suspend fun currents(`value`: Output>) {
        this.currents = value
    }

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

    /**
     * @param values The current resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
     */
    @JvmName("xufmagbmjbupttdf")
    public suspend fun currents(values: List>) {
        this.currents = Output.all(values)
    }

    /**
     * @param value The previous resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
     */
    @JvmName("ehdmqfmrjsdmrihv")
    public suspend fun previouses(`value`: Output>) {
        this.previouses = value
    }

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

    /**
     * @param values The previous resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
     */
    @JvmName("afbipnxgcnomhanp")
    public suspend fun previouses(values: List>) {
        this.previouses = Output.all(values)
    }

    /**
     * @param value The reason that will log an alert. Possible values are `PlatformInitiated` (such as a problem with the resource in an affected region of an Azure incident), `UserInitiated` (such as a shutdown request of a VM) and `Unknown`.
     */
    @JvmName("jsodqgproxiimmtf")
    public suspend fun reasons(`value`: Output>) {
        this.reasons = value
    }

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

    /**
     * @param values The reason that will log an alert. Possible values are `PlatformInitiated` (such as a problem with the resource in an affected region of an Azure incident), `UserInitiated` (such as a shutdown request of a VM) and `Unknown`.
     */
    @JvmName("fbagdtxvlfryljsh")
    public suspend fun reasons(values: List>) {
        this.reasons = Output.all(values)
    }

    /**
     * @param value The current resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
     */
    @JvmName("tckbgdctwoegukhm")
    public suspend fun currents(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.currents = mapped
    }

    /**
     * @param values The current resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
     */
    @JvmName("giohjttfoepwypkh")
    public suspend fun currents(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.currents = mapped
    }

    /**
     * @param value The previous resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
     */
    @JvmName("xryadptuhodrfvks")
    public suspend fun previouses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.previouses = mapped
    }

    /**
     * @param values The previous resource health statuses that will log an alert. Possible values are `Available`, `Degraded`, `Unavailable` and `Unknown`.
     */
    @JvmName("ckxxmajkdsloevye")
    public suspend fun previouses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.previouses = mapped
    }

    /**
     * @param value The reason that will log an alert. Possible values are `PlatformInitiated` (such as a problem with the resource in an affected region of an Azure incident), `UserInitiated` (such as a shutdown request of a VM) and `Unknown`.
     */
    @JvmName("nygqqlxcadnqayvk")
    public suspend fun reasons(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reasons = mapped
    }

    /**
     * @param values The reason that will log an alert. Possible values are `PlatformInitiated` (such as a problem with the resource in an affected region of an Azure incident), `UserInitiated` (such as a shutdown request of a VM) and `Unknown`.
     */
    @JvmName("rwknvmnonfkdxukt")
    public suspend fun reasons(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.reasons = mapped
    }

    internal fun build(): ActivityLogAlertCriteriaResourceHealthArgs =
        ActivityLogAlertCriteriaResourceHealthArgs(
            currents = currents,
            previouses = previouses,
            reasons = reasons,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy