
com.pulumi.gcp.redis.kotlin.inputs.ClusterMaintenancePolicyArgs.kt Maven / Gradle / Ivy
@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.ClusterMaintenancePolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property createTime (Output)
* Output only. The time when the policy was created.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
* resolution and up to nine fractional digits.
* @property updateTime (Output)
* Output only. The time when the policy was last updated.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
* resolution and up to nine fractional digits.
* @property weeklyMaintenanceWindows Optional. Maintenance window that is applied to resources covered by this policy.
* Minimum 1. For the current version, the maximum number
* of weekly_window is expected to be one.
* Structure is documented below.
*/
public data class ClusterMaintenancePolicyArgs(
public val createTime: Output? = null,
public val updateTime: Output? = null,
public val weeklyMaintenanceWindows: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.redis.inputs.ClusterMaintenancePolicyArgs =
com.pulumi.gcp.redis.inputs.ClusterMaintenancePolicyArgs.builder()
.createTime(createTime?.applyValue({ args0 -> args0 }))
.updateTime(updateTime?.applyValue({ args0 -> args0 }))
.weeklyMaintenanceWindows(
weeklyMaintenanceWindows?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [ClusterMaintenancePolicyArgs].
*/
@PulumiTagMarker
public class ClusterMaintenancePolicyArgsBuilder internal constructor() {
private var createTime: Output? = null
private var updateTime: Output? = null
private var weeklyMaintenanceWindows:
Output>? = null
/**
* @param value (Output)
* Output only. The time when the policy was created.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
* resolution and up to nine fractional digits.
*/
@JvmName("tanfwgygfyskgsvt")
public suspend fun createTime(`value`: Output) {
this.createTime = value
}
/**
* @param value (Output)
* Output only. The time when the policy was last updated.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
* resolution and up to nine fractional digits.
*/
@JvmName("bxhtsqblqktxecgs")
public suspend fun updateTime(`value`: Output) {
this.updateTime = value
}
/**
* @param value Optional. Maintenance window that is applied to resources covered by this policy.
* Minimum 1. For the current version, the maximum number
* of weekly_window is expected to be one.
* Structure is documented below.
*/
@JvmName("yiynshtwdvudxbtl")
public suspend fun weeklyMaintenanceWindows(`value`: Output>) {
this.weeklyMaintenanceWindows = value
}
@JvmName("sqpvgbcrxuqgajgh")
public suspend fun weeklyMaintenanceWindows(vararg values: Output) {
this.weeklyMaintenanceWindows = Output.all(values.asList())
}
/**
* @param values Optional. Maintenance window that is applied to resources covered by this policy.
* Minimum 1. For the current version, the maximum number
* of weekly_window is expected to be one.
* Structure is documented below.
*/
@JvmName("essvwvympycnxjkk")
public suspend fun weeklyMaintenanceWindows(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy