com.pulumi.azurenative.documentdb.kotlin.enums.CreateMode.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.documentdb.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* The mode to create a mongo cluster.
*/
public enum class CreateMode(
public val javaValue: com.pulumi.azurenative.documentdb.enums.CreateMode,
) : ConvertibleToJava {
Default(com.pulumi.azurenative.documentdb.enums.CreateMode.Default),
PointInTimeRestore(com.pulumi.azurenative.documentdb.enums.CreateMode.PointInTimeRestore),
;
override fun toJava(): com.pulumi.azurenative.documentdb.enums.CreateMode = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.documentdb.enums.CreateMode): CreateMode =
CreateMode.values().first { it.javaValue == javaType }
}
}