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

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

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

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

import com.pulumi.azurenative.alertsmanagement.inputs.WeeklyRecurrenceArgs.builder
import com.pulumi.azurenative.alertsmanagement.kotlin.enums.DaysOfWeek
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

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

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

    private var endTime: Output? = null

    private var recurrenceType: Output? = null

    private var startTime: Output? = null

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

    @JvmName("bvqusowaaitffaqj")
    public suspend fun daysOfWeek(vararg values: Output>) {
        this.daysOfWeek = Output.all(values.asList())
    }

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

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

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

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

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

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

    /**
     * @param value End time for recurrence.
     */
    @JvmName("xoilmpdkylogdxto")
    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 'Weekly'.
     */
    @JvmName("udxvoxiirdmdufjd")
    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("haodvltnpmrtgthe")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy