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

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

package com.pulumi.azure.sentinel.kotlin.inputs

import com.pulumi.azure.sentinel.inputs.AlertRuleAnomalyDuplicateSingleSelectObservationArgs.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 description The description of the single select observation.
 * @property name The name of the single select observation.
 * @property supportedValues A list of supported values of the single select observation.
 * @property value The value of the multi select observation.
 */
public data class AlertRuleAnomalyDuplicateSingleSelectObservationArgs(
    public val description: Output? = null,
    public val name: Output,
    public val supportedValues: Output>? = null,
    public val `value`: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.sentinel.inputs.AlertRuleAnomalyDuplicateSingleSelectObservationArgs =
        com.pulumi.azure.sentinel.inputs.AlertRuleAnomalyDuplicateSingleSelectObservationArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .supportedValues(supportedValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlertRuleAnomalyDuplicateSingleSelectObservationArgs].
 */
@PulumiTagMarker
public class AlertRuleAnomalyDuplicateSingleSelectObservationArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var supportedValues: Output>? = null

    private var `value`: Output? = null

    /**
     * @param value The description of the single select observation.
     */
    @JvmName("cghiiyoqthniplgr")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the single select observation.
     */
    @JvmName("bfulymiynkdyjtum")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of supported values of the single select observation.
     */
    @JvmName("xfaphtsqjykuhjyq")
    public suspend fun supportedValues(`value`: Output>) {
        this.supportedValues = value
    }

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

    /**
     * @param values A list of supported values of the single select observation.
     */
    @JvmName("lwxsrceyejcdfsea")
    public suspend fun supportedValues(values: List>) {
        this.supportedValues = Output.all(values)
    }

    /**
     * @param value The value of the multi select observation.
     */
    @JvmName("ghqwduqqxaeolgvk")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The description of the single select observation.
     */
    @JvmName("oendjkpywtraenbk")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the single select observation.
     */
    @JvmName("hylimeuvcqstiwgi")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of supported values of the single select observation.
     */
    @JvmName("phasyejshpoorbkw")
    public suspend fun supportedValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.supportedValues = mapped
    }

    /**
     * @param values A list of supported values of the single select observation.
     */
    @JvmName("mbjjykhekgxjhcoq")
    public suspend fun supportedValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedValues = mapped
    }

    /**
     * @param value The value of the multi select observation.
     */
    @JvmName("wuamvpgnlewflnlw")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): AlertRuleAnomalyDuplicateSingleSelectObservationArgs =
        AlertRuleAnomalyDuplicateSingleSelectObservationArgs(
            description = description,
            name = name ?: throw PulumiNullFieldException("name"),
            supportedValues = supportedValues,
            `value` = `value` ?: throw PulumiNullFieldException("value"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy