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

com.pulumi.azurenative.alertsmanagement.kotlin.inputs.MonthlyRecurrenceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.alertsmanagement.kotlin.inputs

import com.pulumi.azurenative.alertsmanagement.inputs.MonthlyRecurrenceArgs.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

/**
 * Monthly recurrence object.
 * @property daysOfMonth Specifies the values for monthly recurrence pattern.
 * @property endTime End time for recurrence.
 * @property recurrenceType Specifies when the recurrence should be applied.
 * Expected value is 'Monthly'.
 * @property startTime Start time for recurrence.
 */
public data class MonthlyRecurrenceArgs(
    public val daysOfMonth: Output>,
    public val endTime: Output? = null,
    public val recurrenceType: Output,
    public val startTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.alertsmanagement.inputs.MonthlyRecurrenceArgs =
        com.pulumi.azurenative.alertsmanagement.inputs.MonthlyRecurrenceArgs.builder()
            .daysOfMonth(daysOfMonth.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .endTime(endTime?.applyValue({ args0 -> args0 }))
            .recurrenceType(recurrenceType.applyValue({ args0 -> args0 }))
            .startTime(startTime?.applyValue({ args0 -> args0 })).build()
}

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

    private var endTime: Output? = null

    private var recurrenceType: Output? = null

    private var startTime: Output? = null

    /**
     * @param value Specifies the values for monthly recurrence pattern.
     */
    @JvmName("fsfmcatpawdwkerg")
    public suspend fun daysOfMonth(`value`: Output>) {
        this.daysOfMonth = value
    }

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

    /**
     * @param values Specifies the values for monthly recurrence pattern.
     */
    @JvmName("cvlvsajrowbkcjxb")
    public suspend fun daysOfMonth(values: List>) {
        this.daysOfMonth = Output.all(values)
    }

    /**
     * @param value End time for recurrence.
     */
    @JvmName("jbybfdmeircirlma")
    public suspend fun endTime(`value`: Output) {
        this.endTime = value
    }

    /**
     * @param value Specifies when the recurrence should be applied.
     * Expected value is 'Monthly'.
     */
    @JvmName("bndvvvurvmyetxgy")
    public suspend fun recurrenceType(`value`: Output) {
        this.recurrenceType = value
    }

    /**
     * @param value Start time for recurrence.
     */
    @JvmName("nhoqkpmkktwoktbr")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value Specifies the values for monthly recurrence pattern.
     */
    @JvmName("eajudfhearwjyymh")
    public suspend fun daysOfMonth(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfMonth = mapped
    }

    /**
     * @param values Specifies the values for monthly recurrence pattern.
     */
    @JvmName("nyxvvwucefjlnyjt")
    public suspend fun daysOfMonth(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.daysOfMonth = mapped
    }

    /**
     * @param value End time for recurrence.
     */
    @JvmName("bewpxamwcqrlrbql")
    public suspend fun endTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endTime = mapped
    }

    /**
     * @param value Specifies when the recurrence should be applied.
     * Expected value is 'Monthly'.
     */
    @JvmName("ljpparbuafgmpoyl")
    public suspend fun recurrenceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recurrenceType = mapped
    }

    /**
     * @param value Start time for recurrence.
     */
    @JvmName("bojcaebjcljsaxdi")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    internal fun build(): MonthlyRecurrenceArgs = MonthlyRecurrenceArgs(
        daysOfMonth = daysOfMonth ?: throw PulumiNullFieldException("daysOfMonth"),
        endTime = endTime,
        recurrenceType = recurrenceType ?: throw PulumiNullFieldException("recurrenceType"),
        startTime = startTime,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy