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

com.pulumi.azurenative.security.kotlin.inputs.TimeWindowCustomAlertRuleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.security.kotlin.inputs

import com.pulumi.azurenative.security.inputs.TimeWindowCustomAlertRuleArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range.
 * @property isEnabled Status of the custom alert.
 * @property maxThreshold The maximum threshold.
 * @property minThreshold The minimum threshold.
 * @property ruleType The type of the custom alert rule.
 * Expected value is 'TimeWindowCustomAlertRule'.
 * @property timeWindowSize The time window size in iso8601 format.
 */
public data class TimeWindowCustomAlertRuleArgs(
    public val isEnabled: Output,
    public val maxThreshold: Output,
    public val minThreshold: Output,
    public val ruleType: Output,
    public val timeWindowSize: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.security.inputs.TimeWindowCustomAlertRuleArgs =
        com.pulumi.azurenative.security.inputs.TimeWindowCustomAlertRuleArgs.builder()
            .isEnabled(isEnabled.applyValue({ args0 -> args0 }))
            .maxThreshold(maxThreshold.applyValue({ args0 -> args0 }))
            .minThreshold(minThreshold.applyValue({ args0 -> args0 }))
            .ruleType(ruleType.applyValue({ args0 -> args0 }))
            .timeWindowSize(timeWindowSize.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TimeWindowCustomAlertRuleArgs].
 */
@PulumiTagMarker
public class TimeWindowCustomAlertRuleArgsBuilder internal constructor() {
    private var isEnabled: Output? = null

    private var maxThreshold: Output? = null

    private var minThreshold: Output? = null

    private var ruleType: Output? = null

    private var timeWindowSize: Output? = null

    /**
     * @param value Status of the custom alert.
     */
    @JvmName("bsmcsntgnsdxgckk")
    public suspend fun isEnabled(`value`: Output) {
        this.isEnabled = value
    }

    /**
     * @param value The maximum threshold.
     */
    @JvmName("lejejavtehlcsoue")
    public suspend fun maxThreshold(`value`: Output) {
        this.maxThreshold = value
    }

    /**
     * @param value The minimum threshold.
     */
    @JvmName("mblofnqpbepanfwv")
    public suspend fun minThreshold(`value`: Output) {
        this.minThreshold = value
    }

    /**
     * @param value The type of the custom alert rule.
     * Expected value is 'TimeWindowCustomAlertRule'.
     */
    @JvmName("gryajbstquryvcgx")
    public suspend fun ruleType(`value`: Output) {
        this.ruleType = value
    }

    /**
     * @param value The time window size in iso8601 format.
     */
    @JvmName("xeojyjswcmsfphyw")
    public suspend fun timeWindowSize(`value`: Output) {
        this.timeWindowSize = value
    }

    /**
     * @param value Status of the custom alert.
     */
    @JvmName("rhlsicofpnxfxjhb")
    public suspend fun isEnabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.isEnabled = mapped
    }

    /**
     * @param value The maximum threshold.
     */
    @JvmName("ygkxjybonyjhejsk")
    public suspend fun maxThreshold(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxThreshold = mapped
    }

    /**
     * @param value The minimum threshold.
     */
    @JvmName("blioswjheqjajnci")
    public suspend fun minThreshold(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minThreshold = mapped
    }

    /**
     * @param value The type of the custom alert rule.
     * Expected value is 'TimeWindowCustomAlertRule'.
     */
    @JvmName("ocufhfesfyvpboia")
    public suspend fun ruleType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleType = mapped
    }

    /**
     * @param value The time window size in iso8601 format.
     */
    @JvmName("tdnsnocyxwdrnqit")
    public suspend fun timeWindowSize(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeWindowSize = mapped
    }

    internal fun build(): TimeWindowCustomAlertRuleArgs = TimeWindowCustomAlertRuleArgs(
        isEnabled = isEnabled ?: throw PulumiNullFieldException("isEnabled"),
        maxThreshold = maxThreshold ?: throw PulumiNullFieldException("maxThreshold"),
        minThreshold = minThreshold ?: throw PulumiNullFieldException("minThreshold"),
        ruleType = ruleType ?: throw PulumiNullFieldException("ruleType"),
        timeWindowSize = timeWindowSize ?: throw PulumiNullFieldException("timeWindowSize"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy