com.pulumi.azure.redis.kotlin.inputs.CachePatchScheduleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.redis.kotlin.inputs
import com.pulumi.azure.redis.inputs.CachePatchScheduleArgs.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.jvm.JvmName
/**
*
* @property dayOfWeek the Weekday name - possible values include `Monday`, `Tuesday`, `Wednesday` etc.
* @property maintenanceWindow The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to `PT5H`.
* @property startHourUtc the Start Hour for maintenance in UTC - possible values range from `0 - 23`.
* > **Note:** The Patch Window lasts for `5` hours from the `start_hour_utc`.
*/
public data class CachePatchScheduleArgs(
public val dayOfWeek: Output,
public val maintenanceWindow: Output? = null,
public val startHourUtc: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.redis.inputs.CachePatchScheduleArgs =
com.pulumi.azure.redis.inputs.CachePatchScheduleArgs.builder()
.dayOfWeek(dayOfWeek.applyValue({ args0 -> args0 }))
.maintenanceWindow(maintenanceWindow?.applyValue({ args0 -> args0 }))
.startHourUtc(startHourUtc?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CachePatchScheduleArgs].
*/
@PulumiTagMarker
public class CachePatchScheduleArgsBuilder internal constructor() {
private var dayOfWeek: Output? = null
private var maintenanceWindow: Output? = null
private var startHourUtc: Output? = null
/**
* @param value the Weekday name - possible values include `Monday`, `Tuesday`, `Wednesday` etc.
*/
@JvmName("sfxcqafkadgqftot")
public suspend fun dayOfWeek(`value`: Output) {
this.dayOfWeek = value
}
/**
* @param value The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to `PT5H`.
*/
@JvmName("lanpcjuvrwtvqihp")
public suspend fun maintenanceWindow(`value`: Output) {
this.maintenanceWindow = value
}
/**
* @param value the Start Hour for maintenance in UTC - possible values range from `0 - 23`.
* > **Note:** The Patch Window lasts for `5` hours from the `start_hour_utc`.
*/
@JvmName("ryllscmjayuqxljs")
public suspend fun startHourUtc(`value`: Output) {
this.startHourUtc = value
}
/**
* @param value the Weekday name - possible values include `Monday`, `Tuesday`, `Wednesday` etc.
*/
@JvmName("chskvyaspiyyfbiw")
public suspend fun dayOfWeek(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dayOfWeek = mapped
}
/**
* @param value The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated. Defaults to `PT5H`.
*/
@JvmName("jjgoxoatgplfalwb")
public suspend fun maintenanceWindow(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maintenanceWindow = mapped
}
/**
* @param value the Start Hour for maintenance in UTC - possible values range from `0 - 23`.
* > **Note:** The Patch Window lasts for `5` hours from the `start_hour_utc`.
*/
@JvmName("yyhmxdlhtbdjjgyv")
public suspend fun startHourUtc(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.startHourUtc = mapped
}
internal fun build(): CachePatchScheduleArgs = CachePatchScheduleArgs(
dayOfWeek = dayOfWeek ?: throw PulumiNullFieldException("dayOfWeek"),
maintenanceWindow = maintenanceWindow,
startHourUtc = startHourUtc,
)
}