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

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

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

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

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

/**
 *
 * @property automationAccountId The automation account ID which holds this runbook and authenticates to Azure resources.
 * @property isGlobalRunbook Indicates whether this instance is global runbook.
 * @property name The name of the automation runbook receiver.
 * @property runbookName The name for this runbook.
 * @property serviceUri The URI where webhooks should be sent.
 * @property useCommonAlertSchema Enables or disables the common alert schema.
 * @property webhookResourceId The resource id for webhook linked to this runbook.
 */
public data class ActionGroupAutomationRunbookReceiverArgs(
    public val automationAccountId: Output,
    public val isGlobalRunbook: Output,
    public val name: Output,
    public val runbookName: Output,
    public val serviceUri: Output,
    public val useCommonAlertSchema: Output? = null,
    public val webhookResourceId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActionGroupAutomationRunbookReceiverArgs = com.pulumi.azure.monitoring.inputs.ActionGroupAutomationRunbookReceiverArgs.builder()
        .automationAccountId(automationAccountId.applyValue({ args0 -> args0 }))
        .isGlobalRunbook(isGlobalRunbook.applyValue({ args0 -> args0 }))
        .name(name.applyValue({ args0 -> args0 }))
        .runbookName(runbookName.applyValue({ args0 -> args0 }))
        .serviceUri(serviceUri.applyValue({ args0 -> args0 }))
        .useCommonAlertSchema(useCommonAlertSchema?.applyValue({ args0 -> args0 }))
        .webhookResourceId(webhookResourceId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ActionGroupAutomationRunbookReceiverArgs].
 */
@PulumiTagMarker
public class ActionGroupAutomationRunbookReceiverArgsBuilder internal constructor() {
    private var automationAccountId: Output? = null

    private var isGlobalRunbook: Output? = null

    private var name: Output? = null

    private var runbookName: Output? = null

    private var serviceUri: Output? = null

    private var useCommonAlertSchema: Output? = null

    private var webhookResourceId: Output? = null

    /**
     * @param value The automation account ID which holds this runbook and authenticates to Azure resources.
     */
    @JvmName("fjbgypetgqydtrqn")
    public suspend fun automationAccountId(`value`: Output) {
        this.automationAccountId = value
    }

    /**
     * @param value Indicates whether this instance is global runbook.
     */
    @JvmName("bysnkwoikqmyvcfq")
    public suspend fun isGlobalRunbook(`value`: Output) {
        this.isGlobalRunbook = value
    }

    /**
     * @param value The name of the automation runbook receiver.
     */
    @JvmName("qdqfvjhrdsvteect")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name for this runbook.
     */
    @JvmName("gfcvkfxnsecjixyn")
    public suspend fun runbookName(`value`: Output) {
        this.runbookName = value
    }

    /**
     * @param value The URI where webhooks should be sent.
     */
    @JvmName("cbddkfxmrvkxhaka")
    public suspend fun serviceUri(`value`: Output) {
        this.serviceUri = value
    }

    /**
     * @param value Enables or disables the common alert schema.
     */
    @JvmName("wxkrpappchermpgw")
    public suspend fun useCommonAlertSchema(`value`: Output) {
        this.useCommonAlertSchema = value
    }

    /**
     * @param value The resource id for webhook linked to this runbook.
     */
    @JvmName("jhabgtancfsguxrx")
    public suspend fun webhookResourceId(`value`: Output) {
        this.webhookResourceId = value
    }

    /**
     * @param value The automation account ID which holds this runbook and authenticates to Azure resources.
     */
    @JvmName("amrumxphiqynsaie")
    public suspend fun automationAccountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.automationAccountId = mapped
    }

    /**
     * @param value Indicates whether this instance is global runbook.
     */
    @JvmName("kileyfmjogyjdyhr")
    public suspend fun isGlobalRunbook(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.isGlobalRunbook = mapped
    }

    /**
     * @param value The name of the automation runbook receiver.
     */
    @JvmName("gcktsnqwermqamqd")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name for this runbook.
     */
    @JvmName("rldadunxxwrasklt")
    public suspend fun runbookName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.runbookName = mapped
    }

    /**
     * @param value The URI where webhooks should be sent.
     */
    @JvmName("vqlrclfkemfbjdno")
    public suspend fun serviceUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceUri = mapped
    }

    /**
     * @param value Enables or disables the common alert schema.
     */
    @JvmName("karxeserivbjoriq")
    public suspend fun useCommonAlertSchema(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useCommonAlertSchema = mapped
    }

    /**
     * @param value The resource id for webhook linked to this runbook.
     */
    @JvmName("icivctfvdhayxcud")
    public suspend fun webhookResourceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.webhookResourceId = mapped
    }

    internal fun build(): ActionGroupAutomationRunbookReceiverArgs =
        ActionGroupAutomationRunbookReceiverArgs(
            automationAccountId = automationAccountId ?: throw PulumiNullFieldException("automationAccountId"),
            isGlobalRunbook = isGlobalRunbook ?: throw PulumiNullFieldException("isGlobalRunbook"),
            name = name ?: throw PulumiNullFieldException("name"),
            runbookName = runbookName ?: throw PulumiNullFieldException("runbookName"),
            serviceUri = serviceUri ?: throw PulumiNullFieldException("serviceUri"),
            useCommonAlertSchema = useCommonAlertSchema,
            webhookResourceId = webhookResourceId ?: throw PulumiNullFieldException("webhookResourceId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy