![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.mssql.kotlin.inputs.FailoverGroupPartnerServerArgs.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.mssql.kotlin.inputs
import com.pulumi.azure.mssql.inputs.FailoverGroupPartnerServerArgs.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 id The ID of a partner SQL server to include in the failover group.
* @property location The location of the partner server.
* @property role The replication role of the partner server. Possible values include `Primary` or `Secondary`.
*/
public data class FailoverGroupPartnerServerArgs(
public val id: Output,
public val location: Output? = null,
public val role: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.mssql.inputs.FailoverGroupPartnerServerArgs =
com.pulumi.azure.mssql.inputs.FailoverGroupPartnerServerArgs.builder()
.id(id.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.role(role?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FailoverGroupPartnerServerArgs].
*/
@PulumiTagMarker
public class FailoverGroupPartnerServerArgsBuilder internal constructor() {
private var id: Output? = null
private var location: Output? = null
private var role: Output? = null
/**
* @param value The ID of a partner SQL server to include in the failover group.
*/
@JvmName("rhsjngkubmcfjoas")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The location of the partner server.
*/
@JvmName("pekcumoqgsxsatej")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The replication role of the partner server. Possible values include `Primary` or `Secondary`.
*/
@JvmName("omhklcibvcgakwmp")
public suspend fun role(`value`: Output) {
this.role = value
}
/**
* @param value The ID of a partner SQL server to include in the failover group.
*/
@JvmName("emupfdtuymljrdms")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The location of the partner server.
*/
@JvmName("ogfwhmhgeletpbsh")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The replication role of the partner server. Possible values include `Primary` or `Secondary`.
*/
@JvmName("usafxndcouhlaven")
public suspend fun role(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.role = mapped
}
internal fun build(): FailoverGroupPartnerServerArgs = FailoverGroupPartnerServerArgs(
id = id ?: throw PulumiNullFieldException("id"),
location = location,
role = role,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy