![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.sql.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.sql.kotlin.inputs
import com.pulumi.azure.sql.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 SQL server ID
* @property location the location of the failover group.
* @property role local replication role of the failover group instance.
*/
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.sql.inputs.FailoverGroupPartnerServerArgs =
com.pulumi.azure.sql.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 SQL server ID
*/
@JvmName("btwusfdcfvidtdce")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value the location of the failover group.
*/
@JvmName("cmfhkisrvatwisqk")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value local replication role of the failover group instance.
*/
@JvmName("bmutxajcogjrideo")
public suspend fun role(`value`: Output) {
this.role = value
}
/**
* @param value the SQL server ID
*/
@JvmName("ytvelbppiioieaho")
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 failover group.
*/
@JvmName("hscbvhhfuphyxulr")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value local replication role of the failover group instance.
*/
@JvmName("oikurldeotvwjbdm")
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