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

com.pulumi.azure.sentinel.kotlin.inputs.AlertRuleFusionSourceArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.azure.sentinel.inputs.AlertRuleFusionSourceArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Whether this source signal is enabled or disabled in Fusion detection? Defaults to `true`.
 * @property name The name of the Fusion source signal. Refer to Fusion alert rule template for supported values.
 * @property subTypes One or more `sub_type` blocks as defined below.
 */
public data class AlertRuleFusionSourceArgs(
    public val enabled: Output? = null,
    public val name: Output,
    public val subTypes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sentinel.inputs.AlertRuleFusionSourceArgs =
        com.pulumi.azure.sentinel.inputs.AlertRuleFusionSourceArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .subTypes(
                subTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AlertRuleFusionSourceArgs].
 */
@PulumiTagMarker
public class AlertRuleFusionSourceArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var name: Output? = null

    private var subTypes: Output>? = null

    /**
     * @param value Whether this source signal is enabled or disabled in Fusion detection? Defaults to `true`.
     */
    @JvmName("savevgqdcsyidvtd")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The name of the Fusion source signal. Refer to Fusion alert rule template for supported values.
     */
    @JvmName("uvxftthgonbvubrq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value One or more `sub_type` blocks as defined below.
     */
    @JvmName("kywauwlksrxvqgqe")
    public suspend fun subTypes(`value`: Output>) {
        this.subTypes = value
    }

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

    /**
     * @param values One or more `sub_type` blocks as defined below.
     */
    @JvmName("peboadqmkfmssmcc")
    public suspend fun subTypes(values: List>) {
        this.subTypes = Output.all(values)
    }

    /**
     * @param value Whether this source signal is enabled or disabled in Fusion detection? Defaults to `true`.
     */
    @JvmName("ncpjinkbhhemyltr")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The name of the Fusion source signal. Refer to Fusion alert rule template for supported values.
     */
    @JvmName("vmltkuoqhdquwcwd")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value One or more `sub_type` blocks as defined below.
     */
    @JvmName("ddnejojtxewphvbw")
    public suspend fun subTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subTypes = mapped
    }

    /**
     * @param argument One or more `sub_type` blocks as defined below.
     */
    @JvmName("eetotlmbubppdpiq")
    public suspend fun subTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AlertRuleFusionSourceSubTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.subTypes = mapped
    }

    /**
     * @param argument One or more `sub_type` blocks as defined below.
     */
    @JvmName("yxijrgappdbnbkjf")
    public suspend fun subTypes(vararg argument: suspend AlertRuleFusionSourceSubTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AlertRuleFusionSourceSubTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.subTypes = mapped
    }

    /**
     * @param argument One or more `sub_type` blocks as defined below.
     */
    @JvmName("qnnjcesgeuewbppf")
    public suspend fun subTypes(argument: suspend AlertRuleFusionSourceSubTypeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AlertRuleFusionSourceSubTypeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.subTypes = mapped
    }

    /**
     * @param values One or more `sub_type` blocks as defined below.
     */
    @JvmName("lfqxvixosyosnhgg")
    public suspend fun subTypes(vararg values: AlertRuleFusionSourceSubTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subTypes = mapped
    }

    internal fun build(): AlertRuleFusionSourceArgs = AlertRuleFusionSourceArgs(
        enabled = enabled,
        name = name ?: throw PulumiNullFieldException("name"),
        subTypes = subTypes,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy