com.pulumi.gcp.looker.kotlin.inputs.InstanceDenyMaintenancePeriodArgs.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.looker.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.looker.inputs.InstanceDenyMaintenancePeriodArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property endDate Required. Start date of the deny maintenance period
* Structure is documented below.
* @property startDate Required. Start date of the deny maintenance period
* Structure is documented below.
* @property time Required. Start time of the window in UTC time.
* Structure is documented below.
*/
public data class InstanceDenyMaintenancePeriodArgs(
public val endDate: Output,
public val startDate: Output,
public val time: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.looker.inputs.InstanceDenyMaintenancePeriodArgs =
com.pulumi.gcp.looker.inputs.InstanceDenyMaintenancePeriodArgs.builder()
.endDate(endDate.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.startDate(startDate.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.time(time.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [InstanceDenyMaintenancePeriodArgs].
*/
@PulumiTagMarker
public class InstanceDenyMaintenancePeriodArgsBuilder internal constructor() {
private var endDate: Output? = null
private var startDate: Output? = null
private var time: Output? = null
/**
* @param value Required. Start date of the deny maintenance period
* Structure is documented below.
*/
@JvmName("pscgdnbkrnlcduyi")
public suspend fun endDate(`value`: Output) {
this.endDate = value
}
/**
* @param value Required. Start date of the deny maintenance period
* Structure is documented below.
*/
@JvmName("qgkvmpbqnobwswtq")
public suspend fun startDate(`value`: Output) {
this.startDate = value
}
/**
* @param value Required. Start time of the window in UTC time.
* Structure is documented below.
*/
@JvmName("rtgarrvqtgphlwra")
public suspend fun time(`value`: Output) {
this.time = value
}
/**
* @param value Required. Start date of the deny maintenance period
* Structure is documented below.
*/
@JvmName("vsxmydokkgfpghij")
public suspend fun endDate(`value`: InstanceDenyMaintenancePeriodEndDateArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endDate = mapped
}
/**
* @param argument Required. Start date of the deny maintenance period
* Structure is documented below.
*/
@JvmName("xejxgxlhohdohwyn")
public suspend fun endDate(argument: suspend InstanceDenyMaintenancePeriodEndDateArgsBuilder.() -> Unit) {
val toBeMapped = InstanceDenyMaintenancePeriodEndDateArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.endDate = mapped
}
/**
* @param value Required. Start date of the deny maintenance period
* Structure is documented below.
*/
@JvmName("pvdvauhsedxajkvc")
public suspend fun startDate(`value`: InstanceDenyMaintenancePeriodStartDateArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startDate = mapped
}
/**
* @param argument Required. Start date of the deny maintenance period
* Structure is documented below.
*/
@JvmName("clidnuykmepswcgg")
public suspend fun startDate(argument: suspend InstanceDenyMaintenancePeriodStartDateArgsBuilder.() -> Unit) {
val toBeMapped = InstanceDenyMaintenancePeriodStartDateArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.startDate = mapped
}
/**
* @param value Required. Start time of the window in UTC time.
* Structure is documented below.
*/
@JvmName("myteppomnqvkwypm")
public suspend fun time(`value`: InstanceDenyMaintenancePeriodTimeArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.time = mapped
}
/**
* @param argument Required. Start time of the window in UTC time.
* Structure is documented below.
*/
@JvmName("mivygtlmvgkrbiin")
public suspend fun time(argument: suspend InstanceDenyMaintenancePeriodTimeArgsBuilder.() -> Unit) {
val toBeMapped = InstanceDenyMaintenancePeriodTimeArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.time = mapped
}
internal fun build(): InstanceDenyMaintenancePeriodArgs = InstanceDenyMaintenancePeriodArgs(
endDate = endDate ?: throw PulumiNullFieldException("endDate"),
startDate = startDate ?: throw PulumiNullFieldException("startDate"),
time = time ?: throw PulumiNullFieldException("time"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy