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

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

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

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

import com.pulumi.azure.sentinel.inputs.AlertRuleScheduledAlertDetailsOverrideArgs.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 AlertRuleScheduledAlertDetailsOverrideArgs(
    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.AlertRuleScheduledAlertDetailsOverrideArgs =
        com.pulumi.azure.sentinel.inputs.AlertRuleScheduledAlertDetailsOverrideArgs.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 [AlertRuleScheduledAlertDetailsOverrideArgs].
 */
@PulumiTagMarker
public class AlertRuleScheduledAlertDetailsOverrideArgsBuilder 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("ntevgcdwlrwuupmo")
    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("suwncahusaucotcv")
    public suspend fun displayNameFormat(`value`: Output) {
        this.displayNameFormat = value
    }

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

    @JvmName("fghydgoljqwdtdem")
    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("cpgulucneafexokf")
    public suspend
    fun dynamicProperties(values: List>) {
        this.dynamicProperties = Output.all(values)
    }

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

    /**
     * @param value The column name to take the alert tactics from.
     */
    @JvmName("yxgfbhhhoeplbfdn")
    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("psxmiomprxwecqxj")
    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("atuaptqyvkttvgfd")
    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("cugcaaudpavyybhr")
    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("hfhinscotkscovdi")
    public suspend
    fun dynamicProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AlertRuleScheduledAlertDetailsOverrideDynamicPropertyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dynamicProperties = mapped
    }

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

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

    /**
     * @param values A list of `dynamic_property` blocks as defined below.
     */
    @JvmName("awvhxqbiivolfutt")
    public suspend fun dynamicProperties(
        vararg
        values: AlertRuleScheduledAlertDetailsOverrideDynamicPropertyArgs,
    ) {
        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("segbtkytaqecyvlb")
    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("gfnnvgmujqytemcr")
    public suspend fun tacticsColumnName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tacticsColumnName = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy