![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.postgresql.kotlin.inputs.FlexibleServerHighAvailabilityArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.postgresql.kotlin.inputs
import com.pulumi.azure.postgresql.inputs.FlexibleServerHighAvailabilityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 mode The high availability mode for the PostgreSQL Flexible Server. Possible value are `SameZone` or `ZoneRedundant`.
* @property standbyAvailabilityZone
*/
public data class FlexibleServerHighAvailabilityArgs(
public val mode: Output,
public val standbyAvailabilityZone: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.postgresql.inputs.FlexibleServerHighAvailabilityArgs =
com.pulumi.azure.postgresql.inputs.FlexibleServerHighAvailabilityArgs.builder()
.mode(mode.applyValue({ args0 -> args0 }))
.standbyAvailabilityZone(standbyAvailabilityZone?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FlexibleServerHighAvailabilityArgs].
*/
@PulumiTagMarker
public class FlexibleServerHighAvailabilityArgsBuilder internal constructor() {
private var mode: Output? = null
private var standbyAvailabilityZone: Output? = null
/**
* @param value The high availability mode for the PostgreSQL Flexible Server. Possible value are `SameZone` or `ZoneRedundant`.
*/
@JvmName("wqouddhrglkckagm")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value
*/
@JvmName("tkcyfjvrsohqgafl")
public suspend fun standbyAvailabilityZone(`value`: Output) {
this.standbyAvailabilityZone = value
}
/**
* @param value The high availability mode for the PostgreSQL Flexible Server. Possible value are `SameZone` or `ZoneRedundant`.
*/
@JvmName("tqrxbfvrblivavtd")
public suspend fun mode(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mode = mapped
}
/**
* @param value
*/
@JvmName("xpbpicgqjngklpbf")
public suspend fun standbyAvailabilityZone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.standbyAvailabilityZone = mapped
}
internal fun build(): FlexibleServerHighAvailabilityArgs = FlexibleServerHighAvailabilityArgs(
mode = mode ?: throw PulumiNullFieldException("mode"),
standbyAvailabilityZone = standbyAvailabilityZone,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy