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

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

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

import com.pulumi.azure.sentinel.inputs.AlertRuleScheduledEventGroupingArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property aggregationMethod The aggregation type of grouping the events. Possible values are `AlertPerResult` and `SingleAlert`.
 */
public data class AlertRuleScheduledEventGroupingArgs(
    public val aggregationMethod: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sentinel.inputs.AlertRuleScheduledEventGroupingArgs =
        com.pulumi.azure.sentinel.inputs.AlertRuleScheduledEventGroupingArgs.builder()
            .aggregationMethod(aggregationMethod.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlertRuleScheduledEventGroupingArgs].
 */
@PulumiTagMarker
public class AlertRuleScheduledEventGroupingArgsBuilder internal constructor() {
    private var aggregationMethod: Output? = null

    /**
     * @param value The aggregation type of grouping the events. Possible values are `AlertPerResult` and `SingleAlert`.
     */
    @JvmName("jhgtnttqhmtqggkw")
    public suspend fun aggregationMethod(`value`: Output) {
        this.aggregationMethod = value
    }

    /**
     * @param value The aggregation type of grouping the events. Possible values are `AlertPerResult` and `SingleAlert`.
     */
    @JvmName("sttpobbnpvgqjykk")
    public suspend fun aggregationMethod(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.aggregationMethod = mapped
    }

    internal fun build(): AlertRuleScheduledEventGroupingArgs = AlertRuleScheduledEventGroupingArgs(
        aggregationMethod = aggregationMethod ?: throw PulumiNullFieldException("aggregationMethod"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy