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

com.pulumi.azurenative.insights.kotlin.inputs.WebhookNotificationArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azurenative.insights.inputs.WebhookNotificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Webhook notification of an autoscale event.
 * @property properties a property bag of settings. This value can be empty.
 * @property serviceUri the service address to receive the notification.
 */
public data class WebhookNotificationArgs(
    public val properties: Output>? = null,
    public val serviceUri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.WebhookNotificationArgs =
        com.pulumi.azurenative.insights.inputs.WebhookNotificationArgs.builder()
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .serviceUri(serviceUri?.applyValue({ args0 -> args0 })).build()
}

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

    private var serviceUri: Output? = null

    /**
     * @param value a property bag of settings. This value can be empty.
     */
    @JvmName("brhpkvahyocctiky")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value the service address to receive the notification.
     */
    @JvmName("fiugpmnusxqqwaot")
    public suspend fun serviceUri(`value`: Output) {
        this.serviceUri = value
    }

    /**
     * @param value a property bag of settings. This value can be empty.
     */
    @JvmName("gusbnqoceaunceyv")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values a property bag of settings. This value can be empty.
     */
    @JvmName("gxapaqjgwvcujbty")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value the service address to receive the notification.
     */
    @JvmName("nrxpddfixjjhpjby")
    public suspend fun serviceUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceUri = mapped
    }

    internal fun build(): WebhookNotificationArgs = WebhookNotificationArgs(
        properties = properties,
        serviceUri = serviceUri,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy