![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.azurearcdata.kotlin.inputs.FailoverGroupPropertiesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.azurearcdata.kotlin.inputs
import com.pulumi.azurenative.azurearcdata.inputs.FailoverGroupPropertiesArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The properties of a failover group resource.
* @property partnerManagedInstanceId The resource ID of the partner SQL managed instance.
* @property spec The specifications of the failover group resource.
* @property status The status of the failover group custom resource.
*/
public data class FailoverGroupPropertiesArgs(
public val partnerManagedInstanceId: Output,
public val spec: Output,
public val status: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.azurearcdata.inputs.FailoverGroupPropertiesArgs =
com.pulumi.azurenative.azurearcdata.inputs.FailoverGroupPropertiesArgs.builder()
.partnerManagedInstanceId(partnerManagedInstanceId.applyValue({ args0 -> args0 }))
.spec(spec.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.status(status?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FailoverGroupPropertiesArgs].
*/
@PulumiTagMarker
public class FailoverGroupPropertiesArgsBuilder internal constructor() {
private var partnerManagedInstanceId: Output? = null
private var spec: Output? = null
private var status: Output? = null
/**
* @param value The resource ID of the partner SQL managed instance.
*/
@JvmName("cisdwshwtlwgtqpn")
public suspend fun partnerManagedInstanceId(`value`: Output) {
this.partnerManagedInstanceId = value
}
/**
* @param value The specifications of the failover group resource.
*/
@JvmName("chsfxcjupgfptnmw")
public suspend fun spec(`value`: Output) {
this.spec = value
}
/**
* @param value The status of the failover group custom resource.
*/
@JvmName("bjumpumopwfvsddx")
public suspend fun status(`value`: Output) {
this.status = value
}
/**
* @param value The resource ID of the partner SQL managed instance.
*/
@JvmName("srwwlboqntpaeffw")
public suspend fun partnerManagedInstanceId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.partnerManagedInstanceId = mapped
}
/**
* @param value The specifications of the failover group resource.
*/
@JvmName("vcckybtfuivmtbcr")
public suspend fun spec(`value`: FailoverGroupSpecArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.spec = mapped
}
/**
* @param argument The specifications of the failover group resource.
*/
@JvmName("wnvooeqtdmsvafkb")
public suspend fun spec(argument: suspend FailoverGroupSpecArgsBuilder.() -> Unit) {
val toBeMapped = FailoverGroupSpecArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.spec = mapped
}
/**
* @param value The status of the failover group custom resource.
*/
@JvmName("ciqagraqvbyegnlp")
public suspend fun status(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): FailoverGroupPropertiesArgs = FailoverGroupPropertiesArgs(
partnerManagedInstanceId = partnerManagedInstanceId ?: throw
PulumiNullFieldException("partnerManagedInstanceId"),
spec = spec ?: throw PulumiNullFieldException("spec"),
status = status,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy