com.pulumi.azurenative.servicefabric.kotlin.enums.Access.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.servicefabric.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* The network traffic is allowed or denied.
*/
public enum class Access(
public val javaValue: com.pulumi.azurenative.servicefabric.enums.Access,
) : ConvertibleToJava {
Allow(com.pulumi.azurenative.servicefabric.enums.Access.Allow),
Deny(com.pulumi.azurenative.servicefabric.enums.Access.Deny),
;
override fun toJava(): com.pulumi.azurenative.servicefabric.enums.Access = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.servicefabric.enums.Access): Access =
Access.values().first { it.javaValue == javaType }
}
}