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

com.pulumi.azurenative.alertsmanagement.kotlin.inputs.DetectorArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.alertsmanagement.kotlin.inputs

import com.pulumi.azurenative.alertsmanagement.inputs.DetectorArgs.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.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The detector information. By default this is not populated, unless it's specified in expandDetector
 * @property id The detector id.
 * @property parameters The detector's parameters.'
 */
public data class DetectorArgs(
    public val id: Output,
    public val parameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.alertsmanagement.inputs.DetectorArgs =
        com.pulumi.azurenative.alertsmanagement.inputs.DetectorArgs.builder()
            .id(id.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [DetectorArgs].
 */
@PulumiTagMarker
public class DetectorArgsBuilder internal constructor() {
    private var id: Output? = null

    private var parameters: Output>? = null

    /**
     * @param value The detector id.
     */
    @JvmName("csnwoqyrjjlvmdat")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The detector's parameters.'
     */
    @JvmName("bjcdgiflkkeivskg")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value The detector id.
     */
    @JvmName("iwsoaahfqsbnnpfj")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The detector's parameters.'
     */
    @JvmName("mfvvbcrxfnecipcm")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param values The detector's parameters.'
     */
    @JvmName("nfcthdelkguiphhg")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    internal fun build(): DetectorArgs = DetectorArgs(
        id = id ?: throw PulumiNullFieldException("id"),
        parameters = parameters,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy