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

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

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

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

import com.pulumi.azure.monitoring.inputs.ActionRuleActionGroupConditionAlertRuleIdArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property operator The operator for a given condition. Possible values are `Equals`, `NotEquals`, `Contains`, and `DoesNotContain`.
 * @property values A list of values to match for a given condition.
 */
public data class ActionRuleActionGroupConditionAlertRuleIdArgs(
    public val `operator`: Output,
    public val values: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActionRuleActionGroupConditionAlertRuleIdArgs =
        com.pulumi.azure.monitoring.inputs.ActionRuleActionGroupConditionAlertRuleIdArgs.builder()
            .`operator`(`operator`.applyValue({ args0 -> args0 }))
            .values(values.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ActionRuleActionGroupConditionAlertRuleIdArgs].
 */
@PulumiTagMarker
public class ActionRuleActionGroupConditionAlertRuleIdArgsBuilder internal constructor() {
    private var `operator`: Output? = null

    private var values: Output>? = null

    /**
     * @param value The operator for a given condition. Possible values are `Equals`, `NotEquals`, `Contains`, and `DoesNotContain`.
     */
    @JvmName("yjofbsvygrtykywm")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value A list of values to match for a given condition.
     */
    @JvmName("fanemognpbtxykqq")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values A list of values to match for a given condition.
     */
    @JvmName("lrttjptggyyehxhw")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value The operator for a given condition. Possible values are `Equals`, `NotEquals`, `Contains`, and `DoesNotContain`.
     */
    @JvmName("okmepsnpblwdbmmo")
    public suspend fun `operator`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value A list of values to match for a given condition.
     */
    @JvmName("nhcnbmwqpdfpolcn")
    public suspend fun values(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values A list of values to match for a given condition.
     */
    @JvmName("jluiuiayehlpjawl")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): ActionRuleActionGroupConditionAlertRuleIdArgs =
        ActionRuleActionGroupConditionAlertRuleIdArgs(
            `operator` = `operator` ?: throw PulumiNullFieldException("operator"),
            values = values ?: throw PulumiNullFieldException("values"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy