com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigMaintenanceWindowArgs.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.composer.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.inputs.EnvironmentConfigMaintenanceWindowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property endTime Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end-time must be in the future, relative to 'start_time'.
* @property recurrence Maintenance window recurrence. Format is a subset of RFC-5545 (https://tools.ietf.org/html/rfc5545) 'RRULE'. The only allowed values for 'FREQ' field are 'FREQ=DAILY' and 'FREQ=WEEKLY;BYDAY=...'. Example values: 'FREQ=WEEKLY;BYDAY=TU,WE', 'FREQ=DAILY'.
* @property startTime Start time of the first recurrence of the maintenance window.
*/
public data class EnvironmentConfigMaintenanceWindowArgs(
public val endTime: Output,
public val recurrence: Output,
public val startTime: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.composer.inputs.EnvironmentConfigMaintenanceWindowArgs =
com.pulumi.gcp.composer.inputs.EnvironmentConfigMaintenanceWindowArgs.builder()
.endTime(endTime.applyValue({ args0 -> args0 }))
.recurrence(recurrence.applyValue({ args0 -> args0 }))
.startTime(startTime.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EnvironmentConfigMaintenanceWindowArgs].
*/
@PulumiTagMarker
public class EnvironmentConfigMaintenanceWindowArgsBuilder internal constructor() {
private var endTime: Output? = null
private var recurrence: Output? = null
private var startTime: Output? = null
/**
* @param value Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end-time must be in the future, relative to 'start_time'.
*/
@JvmName("wqikhylyjcjlvjrm")
public suspend fun endTime(`value`: Output) {
this.endTime = value
}
/**
* @param value Maintenance window recurrence. Format is a subset of RFC-5545 (https://tools.ietf.org/html/rfc5545) 'RRULE'. The only allowed values for 'FREQ' field are 'FREQ=DAILY' and 'FREQ=WEEKLY;BYDAY=...'. Example values: 'FREQ=WEEKLY;BYDAY=TU,WE', 'FREQ=DAILY'.
*/
@JvmName("hwliepdrelpdhvgo")
public suspend fun recurrence(`value`: Output) {
this.recurrence = value
}
/**
* @param value Start time of the first recurrence of the maintenance window.
*/
@JvmName("jkiefcheavrrpjlw")
public suspend fun startTime(`value`: Output) {
this.startTime = value
}
/**
* @param value Maintenance window end time. It is used only to calculate the duration of the maintenance window. The value for end-time must be in the future, relative to 'start_time'.
*/
@JvmName("uvvorcxxpigxdcwn")
public suspend fun endTime(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endTime = mapped
}
/**
* @param value Maintenance window recurrence. Format is a subset of RFC-5545 (https://tools.ietf.org/html/rfc5545) 'RRULE'. The only allowed values for 'FREQ' field are 'FREQ=DAILY' and 'FREQ=WEEKLY;BYDAY=...'. Example values: 'FREQ=WEEKLY;BYDAY=TU,WE', 'FREQ=DAILY'.
*/
@JvmName("yukejqqcvsirqvnd")
public suspend fun recurrence(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.recurrence = mapped
}
/**
* @param value Start time of the first recurrence of the maintenance window.
*/
@JvmName("wtxlogkxnivjeeen")
public suspend fun startTime(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startTime = mapped
}
internal fun build(): EnvironmentConfigMaintenanceWindowArgs =
EnvironmentConfigMaintenanceWindowArgs(
endTime = endTime ?: throw PulumiNullFieldException("endTime"),
recurrence = recurrence ?: throw PulumiNullFieldException("recurrence"),
startTime = startTime ?: throw PulumiNullFieldException("startTime"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy