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

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

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

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

import com.pulumi.azure.sentinel.inputs.AlertRuleNrtAlertDetailsOverrideArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property descriptionFormat The format containing columns name(s) to override the description of this Sentinel Alert Rule.
 * @property displayNameFormat The format containing columns name(s) to override the name of this Sentinel Alert Rule.
 * @property dynamicProperties A list of `dynamic_property` blocks as defined below.
 * @property severityColumnName The column name to take the alert severity from.
 * @property tacticsColumnName The column name to take the alert tactics from.
 */
public data class AlertRuleNrtAlertDetailsOverrideArgs(
    public val descriptionFormat: Output? = null,
    public val displayNameFormat: Output? = null,
    public val dynamicProperties: Output>? =
        null,
    public val severityColumnName: Output? = null,
    public val tacticsColumnName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sentinel.inputs.AlertRuleNrtAlertDetailsOverrideArgs =
        com.pulumi.azure.sentinel.inputs.AlertRuleNrtAlertDetailsOverrideArgs.builder()
            .descriptionFormat(descriptionFormat?.applyValue({ args0 -> args0 }))
            .displayNameFormat(displayNameFormat?.applyValue({ args0 -> args0 }))
            .dynamicProperties(
                dynamicProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .severityColumnName(severityColumnName?.applyValue({ args0 -> args0 }))
            .tacticsColumnName(tacticsColumnName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlertRuleNrtAlertDetailsOverrideArgs].
 */
@PulumiTagMarker
public class AlertRuleNrtAlertDetailsOverrideArgsBuilder internal constructor() {
    private var descriptionFormat: Output? = null

    private var displayNameFormat: Output? = null

    private var dynamicProperties: Output>? =
        null

    private var severityColumnName: Output? = null

    private var tacticsColumnName: Output? = null

    /**
     * @param value The format containing columns name(s) to override the description of this Sentinel Alert Rule.
     */
    @JvmName("teegaycvruucgsvu")
    public suspend fun descriptionFormat(`value`: Output) {
        this.descriptionFormat = value
    }

    /**
     * @param value The format containing columns name(s) to override the name of this Sentinel Alert Rule.
     */
    @JvmName("fbhlrpjjabjvfhtx")
    public suspend fun displayNameFormat(`value`: Output) {
        this.displayNameFormat = value
    }

    /**
     * @param value A list of `dynamic_property` blocks as defined below.
     */
    @JvmName("kugganfdbbctxubj")
    public suspend fun dynamicProperties(`value`: Output>) {
        this.dynamicProperties = value
    }

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

    /**
     * @param values A list of `dynamic_property` blocks as defined below.
     */
    @JvmName("gjrnxiimroulpwhy")
    public suspend fun dynamicProperties(values: List>) {
        this.dynamicProperties = Output.all(values)
    }

    /**
     * @param value The column name to take the alert severity from.
     */
    @JvmName("ntbjwmqopojsrjvm")
    public suspend fun severityColumnName(`value`: Output) {
        this.severityColumnName = value
    }

    /**
     * @param value The column name to take the alert tactics from.
     */
    @JvmName("jbatismbvasphclc")
    public suspend fun tacticsColumnName(`value`: Output) {
        this.tacticsColumnName = value
    }

    /**
     * @param value The format containing columns name(s) to override the description of this Sentinel Alert Rule.
     */
    @JvmName("criwwxosdxkcqpdt")
    public suspend fun descriptionFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.descriptionFormat = mapped
    }

    /**
     * @param value The format containing columns name(s) to override the name of this Sentinel Alert Rule.
     */
    @JvmName("vudsgvodsixsarmn")
    public suspend fun displayNameFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayNameFormat = mapped
    }

    /**
     * @param value A list of `dynamic_property` blocks as defined below.
     */
    @JvmName("uutpdhdkxijjxtnv")
    public suspend fun dynamicProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dynamicProperties = mapped
    }

    /**
     * @param argument A list of `dynamic_property` blocks as defined below.
     */
    @JvmName("uuxjromhipbshbch")
    public suspend fun dynamicProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AlertRuleNrtAlertDetailsOverrideDynamicPropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dynamicProperties = mapped
    }

    /**
     * @param argument A list of `dynamic_property` blocks as defined below.
     */
    @JvmName("gbyihfdgkrihfnjh")
    public suspend fun dynamicProperties(vararg argument: suspend AlertRuleNrtAlertDetailsOverrideDynamicPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AlertRuleNrtAlertDetailsOverrideDynamicPropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dynamicProperties = mapped
    }

    /**
     * @param argument A list of `dynamic_property` blocks as defined below.
     */
    @JvmName("wmffxhwlqatnjadr")
    public suspend fun dynamicProperties(argument: suspend AlertRuleNrtAlertDetailsOverrideDynamicPropertyArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AlertRuleNrtAlertDetailsOverrideDynamicPropertyArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.dynamicProperties = mapped
    }

    /**
     * @param values A list of `dynamic_property` blocks as defined below.
     */
    @JvmName("kymxfrbfvxcwjscy")
    public suspend fun dynamicProperties(vararg values: AlertRuleNrtAlertDetailsOverrideDynamicPropertyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dynamicProperties = mapped
    }

    /**
     * @param value The column name to take the alert severity from.
     */
    @JvmName("yhilihlnexiogvxy")
    public suspend fun severityColumnName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.severityColumnName = mapped
    }

    /**
     * @param value The column name to take the alert tactics from.
     */
    @JvmName("hfetnxtmtfunsyhs")
    public suspend fun tacticsColumnName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tacticsColumnName = mapped
    }

    internal fun build(): AlertRuleNrtAlertDetailsOverrideArgs = AlertRuleNrtAlertDetailsOverrideArgs(
        descriptionFormat = descriptionFormat,
        displayNameFormat = displayNameFormat,
        dynamicProperties = dynamicProperties,
        severityColumnName = severityColumnName,
        tacticsColumnName = tacticsColumnName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy