com.pulumi.azurenative.avs.kotlin.enums.AffinityStrength.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.avs.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* vm-host placement policy affinity strength (should/must)
*/
public enum class AffinityStrength(
public val javaValue: com.pulumi.azurenative.avs.enums.AffinityStrength,
) : ConvertibleToJava {
Should(com.pulumi.azurenative.avs.enums.AffinityStrength.Should),
Must(com.pulumi.azurenative.avs.enums.AffinityStrength.Must),
;
override fun toJava(): com.pulumi.azurenative.avs.enums.AffinityStrength = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.avs.enums.AffinityStrength): AffinityStrength = AffinityStrength.values().first { it.javaValue == javaType }
}
}