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

com.pulumi.azurenative.logic.kotlin.inputs.WorkflowTriggerRecurrenceArgs.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.logic.kotlin.inputs

import com.pulumi.azurenative.logic.inputs.WorkflowTriggerRecurrenceArgs.builder
import com.pulumi.azurenative.logic.kotlin.enums.RecurrenceFrequency
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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The workflow trigger recurrence.
 * @property endTime The end time.
 * @property frequency The frequency.
 * @property interval The interval.
 * @property schedule The recurrence schedule.
 * @property startTime The start time.
 * @property timeZone The time zone.
 */
public data class WorkflowTriggerRecurrenceArgs(
    public val endTime: Output? = null,
    public val frequency: Output>? = null,
    public val interval: Output? = null,
    public val schedule: Output? = null,
    public val startTime: Output? = null,
    public val timeZone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.logic.inputs.WorkflowTriggerRecurrenceArgs =
        com.pulumi.azurenative.logic.inputs.WorkflowTriggerRecurrenceArgs.builder()
            .endTime(endTime?.applyValue({ args0 -> args0 }))
            .frequency(
                frequency?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .interval(interval?.applyValue({ args0 -> args0 }))
            .schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .startTime(startTime?.applyValue({ args0 -> args0 }))
            .timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkflowTriggerRecurrenceArgs].
 */
@PulumiTagMarker
public class WorkflowTriggerRecurrenceArgsBuilder internal constructor() {
    private var endTime: Output? = null

    private var frequency: Output>? = null

    private var interval: Output? = null

    private var schedule: Output? = null

    private var startTime: Output? = null

    private var timeZone: Output? = null

    /**
     * @param value The end time.
     */
    @JvmName("itbyvuflfjfndqhv")
    public suspend fun endTime(`value`: Output) {
        this.endTime = value
    }

    /**
     * @param value The frequency.
     */
    @JvmName("tsnkyjegonsirllq")
    public suspend fun frequency(`value`: Output>) {
        this.frequency = value
    }

    /**
     * @param value The interval.
     */
    @JvmName("vrbfnkbbmoltnrri")
    public suspend fun interval(`value`: Output) {
        this.interval = value
    }

    /**
     * @param value The recurrence schedule.
     */
    @JvmName("kbwfwgbenvanvnde")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value The start time.
     */
    @JvmName("mrxthmudmsofotbt")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value The time zone.
     */
    @JvmName("naemkicrjaxlagfb")
    public suspend fun timeZone(`value`: Output) {
        this.timeZone = value
    }

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

    /**
     * @param value The frequency.
     */
    @JvmName("wqdbpgtmfcrwcihd")
    public suspend fun frequency(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frequency = mapped
    }

    /**
     * @param value The frequency.
     */
    @JvmName("uqigahnyahteqtlq")
    public fun frequency(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frequency = mapped
    }

    /**
     * @param value The frequency.
     */
    @JvmName("ymkfflltgwjdyjuu")
    public fun frequency(`value`: RecurrenceFrequency) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frequency = mapped
    }

    /**
     * @param value The interval.
     */
    @JvmName("edlerwsfrsjmpsuq")
    public suspend fun interval(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interval = mapped
    }

    /**
     * @param value The recurrence schedule.
     */
    @JvmName("mwytjnryjiniibav")
    public suspend fun schedule(`value`: RecurrenceScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument The recurrence schedule.
     */
    @JvmName("bxspkllvabplkich")
    public suspend fun schedule(argument: suspend RecurrenceScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = RecurrenceScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

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

    /**
     * @param value The time zone.
     */
    @JvmName("seutcuoftwvplmvy")
    public suspend fun timeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeZone = mapped
    }

    internal fun build(): WorkflowTriggerRecurrenceArgs = WorkflowTriggerRecurrenceArgs(
        endTime = endTime,
        frequency = frequency,
        interval = interval,
        schedule = schedule,
        startTime = startTime,
        timeZone = timeZone,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy