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

com.pulumi.azure.monitoring.kotlin.inputs.AlertProcessingRuleActionGroupScheduleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupScheduleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property effectiveFrom Specifies the Alert Processing Rule effective start time (Y-m-d'T'H:M:S).
 * @property effectiveUntil Specifies the Alert Processing Rule effective end time (Y-m-d'T'H:M:S).
 * @property recurrence A `recurrence` block as defined above.
 * @property timeZone The time zone (e.g. Pacific Standard time, Eastern Standard Time). Defaults to `UTC`. [possible values are defined here](https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ms912391(v=winembedded.11)).
 */
public data class AlertProcessingRuleActionGroupScheduleArgs(
    public val effectiveFrom: Output? = null,
    public val effectiveUntil: Output? = null,
    public val recurrence: Output? = null,
    public val timeZone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupScheduleArgs =
        com.pulumi.azure.monitoring.inputs.AlertProcessingRuleActionGroupScheduleArgs.builder()
            .effectiveFrom(effectiveFrom?.applyValue({ args0 -> args0 }))
            .effectiveUntil(effectiveUntil?.applyValue({ args0 -> args0 }))
            .recurrence(recurrence?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlertProcessingRuleActionGroupScheduleArgs].
 */
@PulumiTagMarker
public class AlertProcessingRuleActionGroupScheduleArgsBuilder internal constructor() {
    private var effectiveFrom: Output? = null

    private var effectiveUntil: Output? = null

    private var recurrence: Output? = null

    private var timeZone: Output? = null

    /**
     * @param value Specifies the Alert Processing Rule effective start time (Y-m-d'T'H:M:S).
     */
    @JvmName("sffcrmiomuxwmomn")
    public suspend fun effectiveFrom(`value`: Output) {
        this.effectiveFrom = value
    }

    /**
     * @param value Specifies the Alert Processing Rule effective end time (Y-m-d'T'H:M:S).
     */
    @JvmName("fldefajvlusaoopu")
    public suspend fun effectiveUntil(`value`: Output) {
        this.effectiveUntil = value
    }

    /**
     * @param value A `recurrence` block as defined above.
     */
    @JvmName("boglbemyjvmqjggp")
    public suspend fun recurrence(`value`: Output) {
        this.recurrence = value
    }

    /**
     * @param value The time zone (e.g. Pacific Standard time, Eastern Standard Time). Defaults to `UTC`. [possible values are defined here](https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ms912391(v=winembedded.11)).
     */
    @JvmName("utcjirrafwuftxhd")
    public suspend fun timeZone(`value`: Output) {
        this.timeZone = value
    }

    /**
     * @param value Specifies the Alert Processing Rule effective start time (Y-m-d'T'H:M:S).
     */
    @JvmName("mmsplmbroclfvjeg")
    public suspend fun effectiveFrom(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.effectiveFrom = mapped
    }

    /**
     * @param value Specifies the Alert Processing Rule effective end time (Y-m-d'T'H:M:S).
     */
    @JvmName("bfeajkecgplcsokt")
    public suspend fun effectiveUntil(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.effectiveUntil = mapped
    }

    /**
     * @param value A `recurrence` block as defined above.
     */
    @JvmName("mwvotfowwskxfegx")
    public suspend fun recurrence(`value`: AlertProcessingRuleActionGroupScheduleRecurrenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recurrence = mapped
    }

    /**
     * @param argument A `recurrence` block as defined above.
     */
    @JvmName("pjlkrbhcvwkjbdhh")
    public suspend fun recurrence(argument: suspend AlertProcessingRuleActionGroupScheduleRecurrenceArgsBuilder.() -> Unit) {
        val toBeMapped = AlertProcessingRuleActionGroupScheduleRecurrenceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.recurrence = mapped
    }

    /**
     * @param value The time zone (e.g. Pacific Standard time, Eastern Standard Time). Defaults to `UTC`. [possible values are defined here](https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ms912391(v=winembedded.11)).
     */
    @JvmName("dsaikqdoqhedcqfy")
    public suspend fun timeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeZone = mapped
    }

    internal fun build(): AlertProcessingRuleActionGroupScheduleArgs =
        AlertProcessingRuleActionGroupScheduleArgs(
            effectiveFrom = effectiveFrom,
            effectiveUntil = effectiveUntil,
            recurrence = recurrence,
            timeZone = timeZone,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy