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

com.pulumi.azure.monitoring.kotlin.inputs.AutoscaleSettingNotificationWebhookArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationWebhookArgs.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

/**
 *
 * @property properties A map of settings.
 * @property serviceUri The HTTPS URI which should receive scale notifications.
 */
public data class AutoscaleSettingNotificationWebhookArgs(
    public val properties: Output>? = null,
    public val serviceUri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationWebhookArgs = com.pulumi.azure.monitoring.inputs.AutoscaleSettingNotificationWebhookArgs.builder()
        .properties(
            properties?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }),
        )
        .serviceUri(serviceUri.applyValue({ args0 -> args0 })).build()
}

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

    private var serviceUri: Output? = null

    /**
     * @param value A map of settings.
     */
    @JvmName("xupwksnjvvvacfov")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value The HTTPS URI which should receive scale notifications.
     */
    @JvmName("vrppkbpvxlwiucvq")
    public suspend fun serviceUri(`value`: Output) {
        this.serviceUri = value
    }

    /**
     * @param value A map of settings.
     */
    @JvmName("ougvgpbbheecqqrq")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values A map of settings.
     */
    @JvmName("wtaglnyyfkouglvh")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value The HTTPS URI which should receive scale notifications.
     */
    @JvmName("lystfikppiulovnh")
    public suspend fun serviceUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceUri = mapped
    }

    internal fun build(): AutoscaleSettingNotificationWebhookArgs =
        AutoscaleSettingNotificationWebhookArgs(
            properties = properties,
            serviceUri = serviceUri ?: throw PulumiNullFieldException("serviceUri"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy