com.pulumi.azurenative.cdn.kotlin.enums.CacheBehavior.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.cdn.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* Caching behavior for the requests
*/
public enum class CacheBehavior(
public val javaValue: com.pulumi.azurenative.cdn.enums.CacheBehavior,
) : ConvertibleToJava {
BypassCache(com.pulumi.azurenative.cdn.enums.CacheBehavior.BypassCache),
Override(com.pulumi.azurenative.cdn.enums.CacheBehavior.Override),
SetIfMissing(com.pulumi.azurenative.cdn.enums.CacheBehavior.SetIfMissing),
;
override fun toJava(): com.pulumi.azurenative.cdn.enums.CacheBehavior = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.cdn.enums.CacheBehavior): CacheBehavior =
CacheBehavior.values().first { it.javaValue == javaType }
}
}