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

@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("clsgmifrqcyrclbd")
    public suspend
    fun dailies(`value`: Output>) {
        this.dailies = value
    }

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

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

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

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

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

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

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

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

    /**
     * @param value One or more `daily` blocks as defined above.
     */
    @JvmName("rwvnykrhnuxtycuf")
    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("tiansjmksbrhtted")
    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("tffrifiawafhiagt")
    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("gfobxxxckvstumwc")
    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("xdauocxtakdjbqtd")
    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("jxnggjhbgylxnpop")
    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("ootvrsbcegjhfdiy")
    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("vcxtxfcvjbhocupo")
    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("medtxkjrjdwyqmhr")
    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("rkyaytoqjujdxhux")
    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("ywnrptupvrvjgthl")
    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("ownpagwusgjlplds")
    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("lbexsnqvvyndysjb")
    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("bekdfxioecnmjgmq")
    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("qjjogbwwukrvayym")
    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