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

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

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

import com.pulumi.azure.sentinel.inputs.GetAlertRuleAnomalyPlainArgs.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 getAlertRuleAnomaly.
 * @property displayName The display name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
 * > **NOTE** One of `name` or `display_name` must be specified.
 * @property logAnalyticsWorkspaceId The ID of the Log Analytics Workspace.
 * @property name The guid of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
 */
public data class GetAlertRuleAnomalyPlainArgs(
    public val displayName: String? = null,
    public val logAnalyticsWorkspaceId: String,
    public val name: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sentinel.inputs.GetAlertRuleAnomalyPlainArgs =
        com.pulumi.azure.sentinel.inputs.GetAlertRuleAnomalyPlainArgs.builder()
            .displayName(displayName?.let({ args0 -> args0 }))
            .logAnalyticsWorkspaceId(logAnalyticsWorkspaceId.let({ args0 -> args0 }))
            .name(name?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetAlertRuleAnomalyPlainArgs].
 */
@PulumiTagMarker
public class GetAlertRuleAnomalyPlainArgsBuilder 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** One of `name` or `display_name` must be specified.
     */
    @JvmName("phjrtnhgrshhdpwl")
    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("jmpvdoraerhnypjh")
    public suspend fun logAnalyticsWorkspaceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.logAnalyticsWorkspaceId = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy