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

com.pulumi.azurenative.workloads.kotlin.inputs.WeeklyScheduleArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.workloads.kotlin.inputs

import com.pulumi.azurenative.workloads.inputs.WeeklyScheduleArgs.builder
import com.pulumi.azurenative.workloads.kotlin.enums.DayOfWeek
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Weekly schedule.
 * @property scheduleRunDays Schedule run days.
 * @property scheduleRunTimes List of times of day this schedule has to be run.
 */
public data class WeeklyScheduleArgs(
    public val scheduleRunDays: Output>? = null,
    public val scheduleRunTimes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.workloads.inputs.WeeklyScheduleArgs =
        com.pulumi.azurenative.workloads.inputs.WeeklyScheduleArgs.builder()
            .scheduleRunDays(
                scheduleRunDays?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .scheduleRunTimes(scheduleRunTimes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var scheduleRunTimes: Output>? = null

    /**
     * @param value Schedule run days.
     */
    @JvmName("mnvjktmcckekcnbl")
    public suspend fun scheduleRunDays(`value`: Output>) {
        this.scheduleRunDays = value
    }

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

    /**
     * @param values Schedule run days.
     */
    @JvmName("fbfjklhibdywbrwm")
    public suspend fun scheduleRunDays(values: List>) {
        this.scheduleRunDays = Output.all(values)
    }

    /**
     * @param value List of times of day this schedule has to be run.
     */
    @JvmName("jtamaitnxsiclaud")
    public suspend fun scheduleRunTimes(`value`: Output>) {
        this.scheduleRunTimes = value
    }

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

    /**
     * @param values List of times of day this schedule has to be run.
     */
    @JvmName("hyovgfegmcqkdcnr")
    public suspend fun scheduleRunTimes(values: List>) {
        this.scheduleRunTimes = Output.all(values)
    }

    /**
     * @param value Schedule run days.
     */
    @JvmName("qoyssxehrnsryhva")
    public suspend fun scheduleRunDays(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scheduleRunDays = mapped
    }

    /**
     * @param values Schedule run days.
     */
    @JvmName("ymsowpotvcukwaiu")
    public suspend fun scheduleRunDays(vararg values: DayOfWeek) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scheduleRunDays = mapped
    }

    /**
     * @param value List of times of day this schedule has to be run.
     */
    @JvmName("xijvbgsuvwsmbjrx")
    public suspend fun scheduleRunTimes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scheduleRunTimes = mapped
    }

    /**
     * @param values List of times of day this schedule has to be run.
     */
    @JvmName("xifpwbuvakraehbv")
    public suspend fun scheduleRunTimes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scheduleRunTimes = mapped
    }

    internal fun build(): WeeklyScheduleArgs = WeeklyScheduleArgs(
        scheduleRunDays = scheduleRunDays,
        scheduleRunTimes = scheduleRunTimes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy