com.pulumi.digitalocean.kotlin.inputs.KubernetesClusterMaintenancePolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.KubernetesClusterMaintenancePolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property day The day of the maintenance window policy. May be one of "monday" through "sunday", or "any" to indicate an arbitrary week day.
* @property duration A string denoting the duration of the service window, e.g., "04:00".
* @property startTime The start time in UTC of the maintenance window policy in 24-hour clock format / HH:MM notation (e.g., 15:00).
*/
public data class KubernetesClusterMaintenancePolicyArgs(
public val day: Output? = null,
public val duration: Output? = null,
public val startTime: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.KubernetesClusterMaintenancePolicyArgs =
com.pulumi.digitalocean.inputs.KubernetesClusterMaintenancePolicyArgs.builder()
.day(day?.applyValue({ args0 -> args0 }))
.duration(duration?.applyValue({ args0 -> args0 }))
.startTime(startTime?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KubernetesClusterMaintenancePolicyArgs].
*/
@PulumiTagMarker
public class KubernetesClusterMaintenancePolicyArgsBuilder internal constructor() {
private var day: Output? = null
private var duration: Output? = null
private var startTime: Output? = null
/**
* @param value The day of the maintenance window policy. May be one of "monday" through "sunday", or "any" to indicate an arbitrary week day.
*/
@JvmName("rnbijjwvncmomvio")
public suspend fun day(`value`: Output) {
this.day = value
}
/**
* @param value A string denoting the duration of the service window, e.g., "04:00".
*/
@JvmName("vpepcupwcbvrrklw")
public suspend fun duration(`value`: Output) {
this.duration = value
}
/**
* @param value The start time in UTC of the maintenance window policy in 24-hour clock format / HH:MM notation (e.g., 15:00).
*/
@JvmName("tbqqiclvdhvvfuyf")
public suspend fun startTime(`value`: Output) {
this.startTime = value
}
/**
* @param value The day of the maintenance window policy. May be one of "monday" through "sunday", or "any" to indicate an arbitrary week day.
*/
@JvmName("hmcwcpqtbmijhuph")
public suspend fun day(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.day = mapped
}
/**
* @param value A string denoting the duration of the service window, e.g., "04:00".
*/
@JvmName("ymhybcwjonyaixmj")
public suspend fun duration(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.duration = mapped
}
/**
* @param value The start time in UTC of the maintenance window policy in 24-hour clock format / HH:MM notation (e.g., 15:00).
*/
@JvmName("ebyhuuijkrsyklko")
public suspend fun startTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.startTime = mapped
}
internal fun build(): KubernetesClusterMaintenancePolicyArgs =
KubernetesClusterMaintenancePolicyArgs(
day = day,
duration = duration,
startTime = startTime,
)
}