com.pulumi.azurenative.dbforpostgresql.kotlin.enums.ReplicationRole.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.dbforpostgresql.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* Replication role of the server
*/
public enum class ReplicationRole(
public val javaValue: com.pulumi.azurenative.dbforpostgresql.enums.ReplicationRole,
) : ConvertibleToJava {
None(com.pulumi.azurenative.dbforpostgresql.enums.ReplicationRole.None),
Primary(com.pulumi.azurenative.dbforpostgresql.enums.ReplicationRole.Primary),
AsyncReplica(com.pulumi.azurenative.dbforpostgresql.enums.ReplicationRole.AsyncReplica),
GeoAsyncReplica(com.pulumi.azurenative.dbforpostgresql.enums.ReplicationRole.GeoAsyncReplica),
;
override fun toJava(): com.pulumi.azurenative.dbforpostgresql.enums.ReplicationRole = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.dbforpostgresql.enums.ReplicationRole): ReplicationRole = ReplicationRole.values().first { it.javaValue == javaType }
}
}