
com.pulumi.awsnative.opensearchservice.kotlin.inputs.DomainOffPeakWindowOptionsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.opensearchservice.kotlin.inputs
import com.pulumi.awsnative.opensearchservice.inputs.DomainOffPeakWindowOptionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property enabled Specifies whether off-peak window settings are enabled for the domain.
* @property offPeakWindow Off-peak window settings for the domain.
*/
public data class DomainOffPeakWindowOptionsArgs(
public val enabled: Output? = null,
public val offPeakWindow: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.opensearchservice.inputs.DomainOffPeakWindowOptionsArgs =
com.pulumi.awsnative.opensearchservice.inputs.DomainOffPeakWindowOptionsArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.offPeakWindow(offPeakWindow?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [DomainOffPeakWindowOptionsArgs].
*/
@PulumiTagMarker
public class DomainOffPeakWindowOptionsArgsBuilder internal constructor() {
private var enabled: Output? = null
private var offPeakWindow: Output? = null
/**
* @param value Specifies whether off-peak window settings are enabled for the domain.
*/
@JvmName("bvuouynbkclisilr")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Off-peak window settings for the domain.
*/
@JvmName("kqeqkkwwxjbacrnc")
public suspend fun offPeakWindow(`value`: Output) {
this.offPeakWindow = value
}
/**
* @param value Specifies whether off-peak window settings are enabled for the domain.
*/
@JvmName("bydbouikhxiodwyp")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Off-peak window settings for the domain.
*/
@JvmName("atscuihpeoecfecx")
public suspend fun offPeakWindow(`value`: DomainOffPeakWindowArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.offPeakWindow = mapped
}
/**
* @param argument Off-peak window settings for the domain.
*/
@JvmName("oiffssxfntcmgean")
public suspend fun offPeakWindow(argument: suspend DomainOffPeakWindowArgsBuilder.() -> Unit) {
val toBeMapped = DomainOffPeakWindowArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.offPeakWindow = mapped
}
internal fun build(): DomainOffPeakWindowOptionsArgs = DomainOffPeakWindowOptionsArgs(
enabled = enabled,
offPeakWindow = offPeakWindow,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy