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

com.pulumi.azure.sentinel.kotlin.inputs.GetAlertRuleTemplatePlainArgs.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.GetAlertRuleTemplatePlainArgs.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 getAlertRuleTemplate.
 * @property displayName The display name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
 * > **NOTE** As `display_name` is not unique, errors may occur when there are multiple Sentinel Alert Rule Template with same `display_name`.
 * @property logAnalyticsWorkspaceId The ID of the Log Analytics Workspace.
 * @property name The name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
 */
public data class GetAlertRuleTemplatePlainArgs(
    public val displayName: String? = null,
    public val logAnalyticsWorkspaceId: String,
    public val name: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sentinel.inputs.GetAlertRuleTemplatePlainArgs =
        com.pulumi.azure.sentinel.inputs.GetAlertRuleTemplatePlainArgs.builder()
            .displayName(displayName?.let({ args0 -> args0 }))
            .logAnalyticsWorkspaceId(logAnalyticsWorkspaceId.let({ args0 -> args0 }))
            .name(name?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetAlertRuleTemplatePlainArgs].
 */
@PulumiTagMarker
public class GetAlertRuleTemplatePlainArgsBuilder internal constructor() {
    private var displayName: String? = null

    private var logAnalyticsWorkspaceId: String? = null

    private var name: String? = null

    /**
     * @param value The display name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
     * > **NOTE** As `display_name` is not unique, errors may occur when there are multiple Sentinel Alert Rule Template with same `display_name`.
     */
    @JvmName("chqdpmagrmnsrrrf")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.displayName = mapped
    }

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

    /**
     * @param value The name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
     */
    @JvmName("aldsgbxhiaeenqqq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.name = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy