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

com.pulumi.azure.sentinel.kotlin.inputs.GetAlertRulePlainArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.sentinel.kotlin.inputs

import com.pulumi.azure.sentinel.inputs.GetAlertRulePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getAlertRule.
 * @property logAnalyticsWorkspaceId The ID of the Log Analytics Workspace this Sentinel Alert Rule belongs to.
 * @property name The name which should be used for this Sentinel Alert Rule.
 */
public data class GetAlertRulePlainArgs(
    public val logAnalyticsWorkspaceId: String,
    public val name: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sentinel.inputs.GetAlertRulePlainArgs =
        com.pulumi.azure.sentinel.inputs.GetAlertRulePlainArgs.builder()
            .logAnalyticsWorkspaceId(logAnalyticsWorkspaceId.let({ args0 -> args0 }))
            .name(name.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetAlertRulePlainArgs].
 */
@PulumiTagMarker
public class GetAlertRulePlainArgsBuilder internal constructor() {
    private var logAnalyticsWorkspaceId: String? = null

    private var name: String? = null

    /**
     * @param value The ID of the Log Analytics Workspace this Sentinel Alert Rule belongs to.
     */
    @JvmName("cnfstbibqtqaxscp")
    public suspend fun logAnalyticsWorkspaceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.logAnalyticsWorkspaceId = mapped
    }

    /**
     * @param value The name which should be used for this Sentinel Alert Rule.
     */
    @JvmName("pdqvrypuftdevodq")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    internal fun build(): GetAlertRulePlainArgs = GetAlertRulePlainArgs(
        logAnalyticsWorkspaceId = logAnalyticsWorkspaceId ?: throw
            PulumiNullFieldException("logAnalyticsWorkspaceId"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy