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

com.pulumi.azurenative.insights.kotlin.inputs.ActionGroupArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.insights.kotlin.inputs

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

/**
 * A pointer to an Azure Action Group.
 * @property actionGroupId The resource ID of the Action Group. This cannot be null or empty.
 * @property webhookProperties the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
 */
public data class ActionGroupArgs(
    public val actionGroupId: Output,
    public val webhookProperties: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.ActionGroupArgs =
        com.pulumi.azurenative.insights.inputs.ActionGroupArgs.builder()
            .actionGroupId(actionGroupId.applyValue({ args0 -> args0 }))
            .webhookProperties(
                webhookProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ActionGroupArgs].
 */
@PulumiTagMarker
public class ActionGroupArgsBuilder internal constructor() {
    private var actionGroupId: Output? = null

    private var webhookProperties: Output>? = null

    /**
     * @param value The resource ID of the Action Group. This cannot be null or empty.
     */
    @JvmName("uvdsuarmrmpualao")
    public suspend fun actionGroupId(`value`: Output) {
        this.actionGroupId = value
    }

    /**
     * @param value the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
     */
    @JvmName("rtclsxlvxrimufne")
    public suspend fun webhookProperties(`value`: Output>) {
        this.webhookProperties = value
    }

    /**
     * @param value The resource ID of the Action Group. This cannot be null or empty.
     */
    @JvmName("yjhniqfiorpporoe")
    public suspend fun actionGroupId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionGroupId = mapped
    }

    /**
     * @param value the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
     */
    @JvmName("jnmqipnyskxgypkk")
    public suspend fun webhookProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webhookProperties = mapped
    }

    /**
     * @param values the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
     */
    @JvmName("uboghrmoljwklfod")
    public fun webhookProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.webhookProperties = mapped
    }

    internal fun build(): ActionGroupArgs = ActionGroupArgs(
        actionGroupId = actionGroupId ?: throw PulumiNullFieldException("actionGroupId"),
        webhookProperties = webhookProperties,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy