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

com.pulumi.azure.lab.kotlin.inputs.ScheduleRecurrenceArgs.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.lab.kotlin.inputs

import com.pulumi.azure.lab.inputs.ScheduleRecurrenceArgs.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 expirationDate When the recurrence will expire in RFC-3339 format.
 * @property frequency The frequency of the recurrence. Possible values are `Daily` and `Weekly`.
 * @property interval The interval to invoke the schedule on. Possible values are between `1` and `365`.
 * @property weekDays The interval to invoke the schedule on. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
 */
public data class ScheduleRecurrenceArgs(
    public val expirationDate: Output,
    public val frequency: Output,
    public val interval: Output? = null,
    public val weekDays: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.lab.inputs.ScheduleRecurrenceArgs =
        com.pulumi.azure.lab.inputs.ScheduleRecurrenceArgs.builder()
            .expirationDate(expirationDate.applyValue({ args0 -> args0 }))
            .frequency(frequency.applyValue({ args0 -> args0 }))
            .interval(interval?.applyValue({ args0 -> args0 }))
            .weekDays(weekDays?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ScheduleRecurrenceArgs].
 */
@PulumiTagMarker
public class ScheduleRecurrenceArgsBuilder internal constructor() {
    private var expirationDate: Output? = null

    private var frequency: Output? = null

    private var interval: Output? = null

    private var weekDays: Output>? = null

    /**
     * @param value When the recurrence will expire in RFC-3339 format.
     */
    @JvmName("bxwgsnbwsaslhfjc")
    public suspend fun expirationDate(`value`: Output) {
        this.expirationDate = value
    }

    /**
     * @param value The frequency of the recurrence. Possible values are `Daily` and `Weekly`.
     */
    @JvmName("qhddslwuvttxmhwn")
    public suspend fun frequency(`value`: Output) {
        this.frequency = value
    }

    /**
     * @param value The interval to invoke the schedule on. Possible values are between `1` and `365`.
     */
    @JvmName("foqymjturydklhgh")
    public suspend fun interval(`value`: Output) {
        this.interval = value
    }

    /**
     * @param value The interval to invoke the schedule on. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
     */
    @JvmName("rxdhgpinitedaocb")
    public suspend fun weekDays(`value`: Output>) {
        this.weekDays = value
    }

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

    /**
     * @param values The interval to invoke the schedule on. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
     */
    @JvmName("ywhrngqjdwbjwirt")
    public suspend fun weekDays(values: List>) {
        this.weekDays = Output.all(values)
    }

    /**
     * @param value When the recurrence will expire in RFC-3339 format.
     */
    @JvmName("xlhtlnyiaviqqauo")
    public suspend fun expirationDate(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.expirationDate = mapped
    }

    /**
     * @param value The frequency of the recurrence. Possible values are `Daily` and `Weekly`.
     */
    @JvmName("divpmrgnoseojvha")
    public suspend fun frequency(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frequency = mapped
    }

    /**
     * @param value The interval to invoke the schedule on. Possible values are between `1` and `365`.
     */
    @JvmName("apcpydbdcrddxktv")
    public suspend fun interval(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interval = mapped
    }

    /**
     * @param value The interval to invoke the schedule on. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
     */
    @JvmName("dwxecwijodrakyyo")
    public suspend fun weekDays(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.weekDays = mapped
    }

    /**
     * @param values The interval to invoke the schedule on. Possible values are `Sunday`, `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday` and `Saturday`.
     */
    @JvmName("xlpiohaqoqyhyjle")
    public suspend fun weekDays(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.weekDays = mapped
    }

    internal fun build(): ScheduleRecurrenceArgs = ScheduleRecurrenceArgs(
        expirationDate = expirationDate ?: throw PulumiNullFieldException("expirationDate"),
        frequency = frequency ?: throw PulumiNullFieldException("frequency"),
        interval = interval,
        weekDays = weekDays,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy