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

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

/**
 *
 * @property dailies One or more `daily` blocks as defined above.
 * @property monthlies One or more `monthly` blocks as defined above.
 * @property weeklies One or more `weekly` blocks as defined below.
 */
public data class AlertProcessingRuleSuppressionScheduleRecurrenceArgs(
    public val dailies: Output>? =
        null,
    public val monthlies: Output>? =
        null,
    public val weeklies: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.AlertProcessingRuleSuppressionScheduleRecurrenceArgs =
        com.pulumi.azure.monitoring.inputs.AlertProcessingRuleSuppressionScheduleRecurrenceArgs.builder()
            .dailies(
                dailies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .monthlies(
                monthlies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .weeklies(
                weeklies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AlertProcessingRuleSuppressionScheduleRecurrenceArgs].
 */
@PulumiTagMarker
public class AlertProcessingRuleSuppressionScheduleRecurrenceArgsBuilder internal constructor() {
    private var dailies: Output>? =
        null

    private var monthlies: Output>? =
        null

    private var weeklies: Output>? =
        null

    /**
     * @param value One or more `daily` blocks as defined above.
     */
    @JvmName("qegerpdihgubtuyu")
    public suspend fun dailies(`value`: Output>) {
        this.dailies = value
    }

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

    /**
     * @param values One or more `daily` blocks as defined above.
     */
    @JvmName("vyksbjqjpurvqirn")
    public suspend fun dailies(values: List>) {
        this.dailies = Output.all(values)
    }

    /**
     * @param value One or more `monthly` blocks as defined above.
     */
    @JvmName("mdhaxvephqkkpkgv")
    public suspend fun monthlies(`value`: Output>) {
        this.monthlies = value
    }

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

    /**
     * @param values One or more `monthly` blocks as defined above.
     */
    @JvmName("pfsooyskenubgaxb")
    public suspend fun monthlies(values: List>) {
        this.monthlies = Output.all(values)
    }

    /**
     * @param value One or more `weekly` blocks as defined below.
     */
    @JvmName("ruvcrocladtmsjeg")
    public suspend fun weeklies(`value`: Output>) {
        this.weeklies = value
    }

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

    /**
     * @param values One or more `weekly` blocks as defined below.
     */
    @JvmName("jhdvlrtvkdipclpo")
    public suspend fun weeklies(values: List>) {
        this.weeklies = Output.all(values)
    }

    /**
     * @param value One or more `daily` blocks as defined above.
     */
    @JvmName("avjfjinuddgdsehj")
    public suspend fun dailies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dailies = mapped
    }

    /**
     * @param argument One or more `daily` blocks as defined above.
     */
    @JvmName("sauykrrauyoefbdo")
    public suspend fun dailies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AlertProcessingRuleSuppressionScheduleRecurrenceDailyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dailies = mapped
    }

    /**
     * @param argument One or more `daily` blocks as defined above.
     */
    @JvmName("ttsrkwppqkxcyliv")
    public suspend fun dailies(vararg argument: suspend AlertProcessingRuleSuppressionScheduleRecurrenceDailyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AlertProcessingRuleSuppressionScheduleRecurrenceDailyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dailies = mapped
    }

    /**
     * @param argument One or more `daily` blocks as defined above.
     */
    @JvmName("tmtmimoagjtqqiob")
    public suspend fun dailies(argument: suspend AlertProcessingRuleSuppressionScheduleRecurrenceDailyArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AlertProcessingRuleSuppressionScheduleRecurrenceDailyArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.dailies = mapped
    }

    /**
     * @param values One or more `daily` blocks as defined above.
     */
    @JvmName("fxutekbiqycuvtwv")
    public suspend fun dailies(vararg values: AlertProcessingRuleSuppressionScheduleRecurrenceDailyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dailies = mapped
    }

    /**
     * @param value One or more `monthly` blocks as defined above.
     */
    @JvmName("wppupxitdyqskufw")
    public suspend fun monthlies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monthlies = mapped
    }

    /**
     * @param argument One or more `monthly` blocks as defined above.
     */
    @JvmName("kkongyesgfwogpsl")
    public suspend fun monthlies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AlertProcessingRuleSuppressionScheduleRecurrenceMonthlyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.monthlies = mapped
    }

    /**
     * @param argument One or more `monthly` blocks as defined above.
     */
    @JvmName("ypvpbdfbvlynqfko")
    public suspend fun monthlies(vararg argument: suspend AlertProcessingRuleSuppressionScheduleRecurrenceMonthlyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AlertProcessingRuleSuppressionScheduleRecurrenceMonthlyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.monthlies = mapped
    }

    /**
     * @param argument One or more `monthly` blocks as defined above.
     */
    @JvmName("ykspiuweobefwulf")
    public suspend fun monthlies(argument: suspend AlertProcessingRuleSuppressionScheduleRecurrenceMonthlyArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AlertProcessingRuleSuppressionScheduleRecurrenceMonthlyArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.monthlies = mapped
    }

    /**
     * @param values One or more `monthly` blocks as defined above.
     */
    @JvmName("hkqnxbhduvgwthfy")
    public suspend fun monthlies(vararg values: AlertProcessingRuleSuppressionScheduleRecurrenceMonthlyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.monthlies = mapped
    }

    /**
     * @param value One or more `weekly` blocks as defined below.
     */
    @JvmName("lnwsscneydtrmkse")
    public suspend fun weeklies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.weeklies = mapped
    }

    /**
     * @param argument One or more `weekly` blocks as defined below.
     */
    @JvmName("itewrkwdjnqfghpl")
    public suspend fun weeklies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AlertProcessingRuleSuppressionScheduleRecurrenceWeeklyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.weeklies = mapped
    }

    /**
     * @param argument One or more `weekly` blocks as defined below.
     */
    @JvmName("tqtvrsqjuhptctbv")
    public suspend fun weeklies(vararg argument: suspend AlertProcessingRuleSuppressionScheduleRecurrenceWeeklyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AlertProcessingRuleSuppressionScheduleRecurrenceWeeklyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.weeklies = mapped
    }

    /**
     * @param argument One or more `weekly` blocks as defined below.
     */
    @JvmName("djdeauudvwxrqfby")
    public suspend fun weeklies(argument: suspend AlertProcessingRuleSuppressionScheduleRecurrenceWeeklyArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AlertProcessingRuleSuppressionScheduleRecurrenceWeeklyArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.weeklies = mapped
    }

    /**
     * @param values One or more `weekly` blocks as defined below.
     */
    @JvmName("gppvypilawhyqavb")
    public suspend fun weeklies(vararg values: AlertProcessingRuleSuppressionScheduleRecurrenceWeeklyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weeklies = mapped
    }

    internal fun build(): AlertProcessingRuleSuppressionScheduleRecurrenceArgs =
        AlertProcessingRuleSuppressionScheduleRecurrenceArgs(
            dailies = dailies,
            monthlies = monthlies,
            weeklies = weeklies,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy