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

com.pulumi.azure.monitoring.kotlin.inputs.MetricAlertDynamicCriteriaDimensionArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.monitoring.inputs.MetricAlertDynamicCriteriaDimensionArgs.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 name One of the dimension names.
 * @property operator The dimension operator. Possible values are `Include`, `Exclude` and `StartsWith`.
 * @property values The list of dimension values.
 */
public data class MetricAlertDynamicCriteriaDimensionArgs(
    public val name: Output,
    public val `operator`: Output,
    public val values: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.MetricAlertDynamicCriteriaDimensionArgs =
        com.pulumi.azure.monitoring.inputs.MetricAlertDynamicCriteriaDimensionArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .`operator`(`operator`.applyValue({ args0 -> args0 }))
            .values(values.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [MetricAlertDynamicCriteriaDimensionArgs].
 */
@PulumiTagMarker
public class MetricAlertDynamicCriteriaDimensionArgsBuilder internal constructor() {
    private var name: Output? = null

    private var `operator`: Output? = null

    private var values: Output>? = null

    /**
     * @param value One of the dimension names.
     */
    @JvmName("axcnfibanjdreogm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The dimension operator. Possible values are `Include`, `Exclude` and `StartsWith`.
     */
    @JvmName("aklbwrpwoflvpgwl")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value The list of dimension values.
     */
    @JvmName("cburhvgcglvdktow")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values The list of dimension values.
     */
    @JvmName("dbkrntjukhpqnxrb")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value One of the dimension names.
     */
    @JvmName("yngqmyyxwmvnyvvv")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The dimension operator. Possible values are `Include`, `Exclude` and `StartsWith`.
     */
    @JvmName("xtavwkhvehjwfdug")
    public suspend fun `operator`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value The list of dimension values.
     */
    @JvmName("mrqolmolryxfvdlk")
    public suspend fun values(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values The list of dimension values.
     */
    @JvmName("tjrbslelkihwflmq")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy