![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.RecurrenceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.RecurrenceArgs.builder
import com.pulumi.azurenative.machinelearningservices.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 for ComputeStartStop schedule type.
* @property frequency [Required] The frequency to trigger schedule.
* @property interval [Required] Specifies schedule interval in conjunction with frequency
* @property schedule [Required] The recurrence schedule.
* @property startTime The start time in yyyy-MM-ddTHH:mm:ss format.
* @property timeZone Specifies time zone in which the schedule runs.
* TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11
*/
public data class RecurrenceArgs(
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.machinelearningservices.inputs.RecurrenceArgs =
com.pulumi.azurenative.machinelearningservices.inputs.RecurrenceArgs.builder()
.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 [RecurrenceArgs].
*/
@PulumiTagMarker
public class RecurrenceArgsBuilder internal constructor() {
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 [Required] The frequency to trigger schedule.
*/
@JvmName("hrwdknrokhssnhae")
public suspend fun frequency(`value`: Output>) {
this.frequency = value
}
/**
* @param value [Required] Specifies schedule interval in conjunction with frequency
*/
@JvmName("weemwqfpsstscihj")
public suspend fun interval(`value`: Output) {
this.interval = value
}
/**
* @param value [Required] The recurrence schedule.
*/
@JvmName("sajcviwglhkwvxko")
public suspend fun schedule(`value`: Output) {
this.schedule = value
}
/**
* @param value The start time in yyyy-MM-ddTHH:mm:ss format.
*/
@JvmName("trkbyqkvmpkgncha")
public suspend fun startTime(`value`: Output) {
this.startTime = value
}
/**
* @param value Specifies time zone in which the schedule runs.
* TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11
*/
@JvmName("yvqnjtplffxqnxuc")
public suspend fun timeZone(`value`: Output) {
this.timeZone = value
}
/**
* @param value [Required] The frequency to trigger schedule.
*/
@JvmName("ocyjdpfvtcdqnxhd")
public suspend fun frequency(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.frequency = mapped
}
/**
* @param value [Required] The frequency to trigger schedule.
*/
@JvmName("pvrtltjkbrklbhfs")
public fun frequency(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.frequency = mapped
}
/**
* @param value [Required] The frequency to trigger schedule.
*/
@JvmName("bulmnqfbkxaqfqhq")
public fun frequency(`value`: RecurrenceFrequency) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.frequency = mapped
}
/**
* @param value [Required] Specifies schedule interval in conjunction with frequency
*/
@JvmName("ivbontyeonexbnur")
public suspend fun interval(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.interval = mapped
}
/**
* @param value [Required] The recurrence schedule.
*/
@JvmName("fkautqgjqowallgc")
public suspend fun schedule(`value`: RecurrenceScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schedule = mapped
}
/**
* @param argument [Required] The recurrence schedule.
*/
@JvmName("bbeqtwyurkblrian")
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 in yyyy-MM-ddTHH:mm:ss format.
*/
@JvmName("vaoxrscxokyijjnj")
public suspend fun startTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.startTime = mapped
}
/**
* @param value Specifies time zone in which the schedule runs.
* TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11
*/
@JvmName("gtetykdjrvgqmvpb")
public suspend fun timeZone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeZone = mapped
}
internal fun build(): RecurrenceArgs = RecurrenceArgs(
frequency = frequency,
interval = interval,
schedule = schedule,
startTime = startTime,
timeZone = timeZone,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy