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

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

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertActionArgs.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 actionGroups List of action group reference resource IDs.
 * @property customWebhookPayload Custom payload to be sent for all webhook payloads in alerting action.
 * @property emailSubject Custom subject override for all email ids in Azure action group.
 */
public data class ScheduledQueryRulesAlertActionArgs(
    public val actionGroups: Output>,
    public val customWebhookPayload: Output? = null,
    public val emailSubject: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertActionArgs =
        com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertActionArgs.builder()
            .actionGroups(actionGroups.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .customWebhookPayload(customWebhookPayload?.applyValue({ args0 -> args0 }))
            .emailSubject(emailSubject?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScheduledQueryRulesAlertActionArgs].
 */
@PulumiTagMarker
public class ScheduledQueryRulesAlertActionArgsBuilder internal constructor() {
    private var actionGroups: Output>? = null

    private var customWebhookPayload: Output? = null

    private var emailSubject: Output? = null

    /**
     * @param value List of action group reference resource IDs.
     */
    @JvmName("cuasovborcavitww")
    public suspend fun actionGroups(`value`: Output>) {
        this.actionGroups = value
    }

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

    /**
     * @param values List of action group reference resource IDs.
     */
    @JvmName("ornogusbfujcuxfs")
    public suspend fun actionGroups(values: List>) {
        this.actionGroups = Output.all(values)
    }

    /**
     * @param value Custom payload to be sent for all webhook payloads in alerting action.
     */
    @JvmName("xmleguqsemvtspph")
    public suspend fun customWebhookPayload(`value`: Output) {
        this.customWebhookPayload = value
    }

    /**
     * @param value Custom subject override for all email ids in Azure action group.
     */
    @JvmName("qkveqlmvttkksmmj")
    public suspend fun emailSubject(`value`: Output) {
        this.emailSubject = value
    }

    /**
     * @param value List of action group reference resource IDs.
     */
    @JvmName("pbdeplmkuvsnkfge")
    public suspend fun actionGroups(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionGroups = mapped
    }

    /**
     * @param values List of action group reference resource IDs.
     */
    @JvmName("ekddqwedmfixrmch")
    public suspend fun actionGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionGroups = mapped
    }

    /**
     * @param value Custom payload to be sent for all webhook payloads in alerting action.
     */
    @JvmName("tunqwebwayhcfutg")
    public suspend fun customWebhookPayload(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customWebhookPayload = mapped
    }

    /**
     * @param value Custom subject override for all email ids in Azure action group.
     */
    @JvmName("iieptriujqnjwheo")
    public suspend fun emailSubject(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emailSubject = mapped
    }

    internal fun build(): ScheduledQueryRulesAlertActionArgs = ScheduledQueryRulesAlertActionArgs(
        actionGroups = actionGroups ?: throw PulumiNullFieldException("actionGroups"),
        customWebhookPayload = customWebhookPayload,
        emailSubject = emailSubject,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy