com.pulumi.azurenative.documentdb.kotlin.inputs.LocationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.documentdb.kotlin.inputs
import com.pulumi.azurenative.documentdb.inputs.LocationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A region in which the Azure Cosmos DB database account is deployed.
* @property failoverPriority The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
* @property isZoneRedundant Flag to indicate whether or not this region is an AvailabilityZone region
* @property locationName The name of the region.
*/
public data class LocationArgs(
public val failoverPriority: Output? = null,
public val isZoneRedundant: Output? = null,
public val locationName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.documentdb.inputs.LocationArgs =
com.pulumi.azurenative.documentdb.inputs.LocationArgs.builder()
.failoverPriority(failoverPriority?.applyValue({ args0 -> args0 }))
.isZoneRedundant(isZoneRedundant?.applyValue({ args0 -> args0 }))
.locationName(locationName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LocationArgs].
*/
@PulumiTagMarker
public class LocationArgsBuilder internal constructor() {
private var failoverPriority: Output? = null
private var isZoneRedundant: Output? = null
private var locationName: Output? = null
/**
* @param value The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
*/
@JvmName("tgdeoicldhtybmhi")
public suspend fun failoverPriority(`value`: Output) {
this.failoverPriority = value
}
/**
* @param value Flag to indicate whether or not this region is an AvailabilityZone region
*/
@JvmName("jvyioetgqqwnusnj")
public suspend fun isZoneRedundant(`value`: Output) {
this.isZoneRedundant = value
}
/**
* @param value The name of the region.
*/
@JvmName("vocxqkelkldgnqdn")
public suspend fun locationName(`value`: Output) {
this.locationName = value
}
/**
* @param value The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
*/
@JvmName("xlggtndtlrllpbst")
public suspend fun failoverPriority(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.failoverPriority = mapped
}
/**
* @param value Flag to indicate whether or not this region is an AvailabilityZone region
*/
@JvmName("xvireofvnvbkjipi")
public suspend fun isZoneRedundant(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isZoneRedundant = mapped
}
/**
* @param value The name of the region.
*/
@JvmName("ybbbpaiepvvxqvgm")
public suspend fun locationName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.locationName = mapped
}
internal fun build(): LocationArgs = LocationArgs(
failoverPriority = failoverPriority,
isZoneRedundant = isZoneRedundant,
locationName = locationName,
)
}