
com.pulumi.awsnative.scheduler.kotlin.inputs.ScheduleFlexibleTimeWindowArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.scheduler.kotlin.inputs
import com.pulumi.awsnative.scheduler.inputs.ScheduleFlexibleTimeWindowArgs.builder
import com.pulumi.awsnative.scheduler.kotlin.enums.ScheduleFlexibleTimeWindowMode
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.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Flexible time window allows configuration of a window within which a schedule can be invoked
* @property maximumWindowInMinutes The maximum time window during which a schedule can be invoked.
* @property mode Determines whether the schedule is invoked within a flexible time window. You must use quotation marks when you specify this value in your JSON or YAML template.
* *Allowed Values* : `"OFF"` | `"FLEXIBLE"`
*/
public data class ScheduleFlexibleTimeWindowArgs(
public val maximumWindowInMinutes: Output? = null,
public val mode: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.scheduler.inputs.ScheduleFlexibleTimeWindowArgs =
com.pulumi.awsnative.scheduler.inputs.ScheduleFlexibleTimeWindowArgs.builder()
.maximumWindowInMinutes(maximumWindowInMinutes?.applyValue({ args0 -> args0 }))
.mode(mode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ScheduleFlexibleTimeWindowArgs].
*/
@PulumiTagMarker
public class ScheduleFlexibleTimeWindowArgsBuilder internal constructor() {
private var maximumWindowInMinutes: Output? = null
private var mode: Output? = null
/**
* @param value The maximum time window during which a schedule can be invoked.
*/
@JvmName("ensbclmknwutlssv")
public suspend fun maximumWindowInMinutes(`value`: Output) {
this.maximumWindowInMinutes = value
}
/**
* @param value Determines whether the schedule is invoked within a flexible time window. You must use quotation marks when you specify this value in your JSON or YAML template.
* *Allowed Values* : `"OFF"` | `"FLEXIBLE"`
*/
@JvmName("jmvixwdqhpvsodpt")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value The maximum time window during which a schedule can be invoked.
*/
@JvmName("kaodrrhcjhvengfx")
public suspend fun maximumWindowInMinutes(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumWindowInMinutes = mapped
}
/**
* @param value Determines whether the schedule is invoked within a flexible time window. You must use quotation marks when you specify this value in your JSON or YAML template.
* *Allowed Values* : `"OFF"` | `"FLEXIBLE"`
*/
@JvmName("rgwingrtishfrila")
public suspend fun mode(`value`: ScheduleFlexibleTimeWindowMode) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mode = mapped
}
internal fun build(): ScheduleFlexibleTimeWindowArgs = ScheduleFlexibleTimeWindowArgs(
maximumWindowInMinutes = maximumWindowInMinutes,
mode = mode ?: throw PulumiNullFieldException("mode"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy