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

com.pulumi.azure.monitoring.kotlin.inputs.ActionRuleSuppressionSuppressionScheduleArgs.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.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionSuppressionScheduleArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property endDateUtc specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
 * @property recurrenceMonthlies specifies the list of dayOfMonth to recurrence. Possible values are between `1` - `31`. Required if `recurrence_type` is `Monthly`.
 * @property recurrenceWeeklies specifies the list of dayOfWeek to recurrence. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
 * @property startDateUtc specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
 */
public data class ActionRuleSuppressionSuppressionScheduleArgs(
    public val endDateUtc: Output,
    public val recurrenceMonthlies: Output>? = null,
    public val recurrenceWeeklies: Output>? = null,
    public val startDateUtc: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionSuppressionScheduleArgs =
        com.pulumi.azure.monitoring.inputs.ActionRuleSuppressionSuppressionScheduleArgs.builder()
            .endDateUtc(endDateUtc.applyValue({ args0 -> args0 }))
            .recurrenceMonthlies(recurrenceMonthlies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .recurrenceWeeklies(recurrenceWeeklies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .startDateUtc(startDateUtc.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ActionRuleSuppressionSuppressionScheduleArgs].
 */
@PulumiTagMarker
public class ActionRuleSuppressionSuppressionScheduleArgsBuilder internal constructor() {
    private var endDateUtc: Output? = null

    private var recurrenceMonthlies: Output>? = null

    private var recurrenceWeeklies: Output>? = null

    private var startDateUtc: Output? = null

    /**
     * @param value specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
     */
    @JvmName("torxicdtmtymxgbi")
    public suspend fun endDateUtc(`value`: Output) {
        this.endDateUtc = value
    }

    /**
     * @param value specifies the list of dayOfMonth to recurrence. Possible values are between `1` - `31`. Required if `recurrence_type` is `Monthly`.
     */
    @JvmName("dabycutckornmvvd")
    public suspend fun recurrenceMonthlies(`value`: Output>) {
        this.recurrenceMonthlies = value
    }

    @JvmName("dbygntixwlyxnsor")
    public suspend fun recurrenceMonthlies(vararg values: Output) {
        this.recurrenceMonthlies = Output.all(values.asList())
    }

    /**
     * @param values specifies the list of dayOfMonth to recurrence. Possible values are between `1` - `31`. Required if `recurrence_type` is `Monthly`.
     */
    @JvmName("anonogasmalpywpe")
    public suspend fun recurrenceMonthlies(values: List>) {
        this.recurrenceMonthlies = Output.all(values)
    }

    /**
     * @param value specifies the list of dayOfWeek to recurrence. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
     */
    @JvmName("ywvvtakhkwvaqkhe")
    public suspend fun recurrenceWeeklies(`value`: Output>) {
        this.recurrenceWeeklies = value
    }

    @JvmName("dohbywfiqrbngyav")
    public suspend fun recurrenceWeeklies(vararg values: Output) {
        this.recurrenceWeeklies = Output.all(values.asList())
    }

    /**
     * @param values specifies the list of dayOfWeek to recurrence. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
     */
    @JvmName("dfqvsulustrvombb")
    public suspend fun recurrenceWeeklies(values: List>) {
        this.recurrenceWeeklies = Output.all(values)
    }

    /**
     * @param value specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
     */
    @JvmName("jrpibitshwecpjvb")
    public suspend fun startDateUtc(`value`: Output) {
        this.startDateUtc = value
    }

    /**
     * @param value specifies the recurrence UTC end datetime (Y-m-d'T'H:M:S'Z').
     */
    @JvmName("asitihpkbqnpylwh")
    public suspend fun endDateUtc(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endDateUtc = mapped
    }

    /**
     * @param value specifies the list of dayOfMonth to recurrence. Possible values are between `1` - `31`. Required if `recurrence_type` is `Monthly`.
     */
    @JvmName("lerecxplmasclnjm")
    public suspend fun recurrenceMonthlies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recurrenceMonthlies = mapped
    }

    /**
     * @param values specifies the list of dayOfMonth to recurrence. Possible values are between `1` - `31`. Required if `recurrence_type` is `Monthly`.
     */
    @JvmName("ekcfqwahnmkjdpyh")
    public suspend fun recurrenceMonthlies(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recurrenceMonthlies = mapped
    }

    /**
     * @param value specifies the list of dayOfWeek to recurrence. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
     */
    @JvmName("rwagdlpaseqpyopx")
    public suspend fun recurrenceWeeklies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recurrenceWeeklies = mapped
    }

    /**
     * @param values specifies the list of dayOfWeek to recurrence. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
     */
    @JvmName("ikeaawbttysknowm")
    public suspend fun recurrenceWeeklies(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recurrenceWeeklies = mapped
    }

    /**
     * @param value specifies the recurrence UTC start datetime (Y-m-d'T'H:M:S'Z').
     */
    @JvmName("iokvfjdqwkoypemv")
    public suspend fun startDateUtc(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startDateUtc = mapped
    }

    internal fun build(): ActionRuleSuppressionSuppressionScheduleArgs =
        ActionRuleSuppressionSuppressionScheduleArgs(
            endDateUtc = endDateUtc ?: throw PulumiNullFieldException("endDateUtc"),
            recurrenceMonthlies = recurrenceMonthlies,
            recurrenceWeeklies = recurrenceWeeklies,
            startDateUtc = startDateUtc ?: throw PulumiNullFieldException("startDateUtc"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy