com.pulumi.azurenative.cdn.kotlin.enums.PolicyMode.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.cdn.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* Describes if it is in detection mode or prevention mode at policy level.
*/
public enum class PolicyMode(
public val javaValue: com.pulumi.azurenative.cdn.enums.PolicyMode,
) : ConvertibleToJava {
Prevention(com.pulumi.azurenative.cdn.enums.PolicyMode.Prevention),
Detection(com.pulumi.azurenative.cdn.enums.PolicyMode.Detection),
;
override fun toJava(): com.pulumi.azurenative.cdn.enums.PolicyMode = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.cdn.enums.PolicyMode): PolicyMode =
PolicyMode.values().first { it.javaValue == javaType }
}
}