com.pulumi.gcp.redis.kotlin.inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.redis.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.redis.inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property day Required. The day of week that maintenance updates occur.
* - DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
* - MONDAY: Monday
* - TUESDAY: Tuesday
* - WEDNESDAY: Wednesday
* - THURSDAY: Thursday
* - FRIDAY: Friday
* - SATURDAY: Saturday
* - SUNDAY: Sunday
* Possible values are: `DAY_OF_WEEK_UNSPECIFIED`, `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
* @property duration (Output)
* Output only. Duration of the maintenance window.
* The current window is fixed at 1 hour.
* A duration in seconds with up to nine fractional digits,
* terminated by 's'. Example: "3.5s".
* @property startTime Required. Start time of the window in UTC time.
* Structure is documented below.
*/
public data class InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs(
public val day: Output,
public val duration: Output? = null,
public val startTime: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.redis.inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs =
com.pulumi.gcp.redis.inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
.day(day.applyValue({ args0 -> args0 }))
.duration(duration?.applyValue({ args0 -> args0 }))
.startTime(startTime.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs].
*/
@PulumiTagMarker
public class InstanceMaintenancePolicyWeeklyMaintenanceWindowArgsBuilder internal constructor() {
private var day: Output? = null
private var duration: Output? = null
private var startTime: Output? =
null
/**
* @param value Required. The day of week that maintenance updates occur.
* - DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
* - MONDAY: Monday
* - TUESDAY: Tuesday
* - WEDNESDAY: Wednesday
* - THURSDAY: Thursday
* - FRIDAY: Friday
* - SATURDAY: Saturday
* - SUNDAY: Sunday
* Possible values are: `DAY_OF_WEEK_UNSPECIFIED`, `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
*/
@JvmName("styadbdshsavffaw")
public suspend fun day(`value`: Output) {
this.day = value
}
/**
* @param value (Output)
* Output only. Duration of the maintenance window.
* The current window is fixed at 1 hour.
* A duration in seconds with up to nine fractional digits,
* terminated by 's'. Example: "3.5s".
*/
@JvmName("qtwhcflrasnuafrp")
public suspend fun duration(`value`: Output) {
this.duration = value
}
/**
* @param value Required. Start time of the window in UTC time.
* Structure is documented below.
*/
@JvmName("vtldjixutmkelppj")
public suspend fun startTime(`value`: Output) {
this.startTime = value
}
/**
* @param value Required. The day of week that maintenance updates occur.
* - DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
* - MONDAY: Monday
* - TUESDAY: Tuesday
* - WEDNESDAY: Wednesday
* - THURSDAY: Thursday
* - FRIDAY: Friday
* - SATURDAY: Saturday
* - SUNDAY: Sunday
* Possible values are: `DAY_OF_WEEK_UNSPECIFIED`, `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, `SUNDAY`.
*/
@JvmName("doklbvhfrlfdsrrl")
public suspend fun day(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.day = mapped
}
/**
* @param value (Output)
* Output only. Duration of the maintenance window.
* The current window is fixed at 1 hour.
* A duration in seconds with up to nine fractional digits,
* terminated by 's'. Example: "3.5s".
*/
@JvmName("dvdpmlleuoievgxc")
public suspend fun duration(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.duration = mapped
}
/**
* @param value Required. Start time of the window in UTC time.
* Structure is documented below.
*/
@JvmName("ronvyqruvrqcqlpn")
public suspend fun startTime(`value`: InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startTime = mapped
}
/**
* @param argument Required. Start time of the window in UTC time.
* Structure is documented below.
*/
@JvmName("uoxvcpilhemsuyht")
public suspend fun startTime(argument: suspend InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgsBuilder.() -> Unit) {
val toBeMapped =
InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.startTime = mapped
}
internal fun build(): InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs =
InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs(
day = day ?: throw PulumiNullFieldException("day"),
duration = duration,
startTime = startTime ?: throw PulumiNullFieldException("startTime"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy