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

com.pulumi.azurenative.insights.kotlin.inputs.LogicAppReceiverArgs.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.LogicAppReceiverArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A logic app receiver.
 * @property callbackUrl The callback url where http request sent to.
 * @property name The name of the logic app receiver. Names must be unique across all receivers within an action group.
 * @property resourceId The azure resource id of the logic app receiver.
 * @property useCommonAlertSchema Indicates whether to use common alert schema.
 */
public data class LogicAppReceiverArgs(
    public val callbackUrl: Output,
    public val name: Output,
    public val resourceId: Output,
    public val useCommonAlertSchema: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.LogicAppReceiverArgs =
        com.pulumi.azurenative.insights.inputs.LogicAppReceiverArgs.builder()
            .callbackUrl(callbackUrl.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .resourceId(resourceId.applyValue({ args0 -> args0 }))
            .useCommonAlertSchema(useCommonAlertSchema?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LogicAppReceiverArgs].
 */
@PulumiTagMarker
public class LogicAppReceiverArgsBuilder internal constructor() {
    private var callbackUrl: Output? = null

    private var name: Output? = null

    private var resourceId: Output? = null

    private var useCommonAlertSchema: Output? = null

    /**
     * @param value The callback url where http request sent to.
     */
    @JvmName("wdahgwnpeygkukel")
    public suspend fun callbackUrl(`value`: Output) {
        this.callbackUrl = value
    }

    /**
     * @param value The name of the logic app receiver. Names must be unique across all receivers within an action group.
     */
    @JvmName("dhwfvjuqtwoptqfd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The azure resource id of the logic app receiver.
     */
    @JvmName("tfyhwkpxunacaowx")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value Indicates whether to use common alert schema.
     */
    @JvmName("agsdluumuvloseki")
    public suspend fun useCommonAlertSchema(`value`: Output) {
        this.useCommonAlertSchema = value
    }

    /**
     * @param value The callback url where http request sent to.
     */
    @JvmName("sfqitxwkvouyapin")
    public suspend fun callbackUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.callbackUrl = mapped
    }

    /**
     * @param value The name of the logic app receiver. Names must be unique across all receivers within an action group.
     */
    @JvmName("hvbdqvefgtmvncrd")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The azure resource id of the logic app receiver.
     */
    @JvmName("bdodghsomulstvhs")
    public suspend fun resourceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceId = mapped
    }

    /**
     * @param value Indicates whether to use common alert schema.
     */
    @JvmName("mqoetemgokkmnilm")
    public suspend fun useCommonAlertSchema(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useCommonAlertSchema = mapped
    }

    internal fun build(): LogicAppReceiverArgs = LogicAppReceiverArgs(
        callbackUrl = callbackUrl ?: throw PulumiNullFieldException("callbackUrl"),
        name = name ?: throw PulumiNullFieldException("name"),
        resourceId = resourceId ?: throw PulumiNullFieldException("resourceId"),
        useCommonAlertSchema = useCommonAlertSchema,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy