com.pulumi.azurenative.security.kotlin.enums.Protocol.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.security.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
public enum class Protocol(
public val javaValue: com.pulumi.azurenative.security.enums.Protocol,
) : ConvertibleToJava {
TCP(com.pulumi.azurenative.security.enums.Protocol.TCP),
UDP(com.pulumi.azurenative.security.enums.Protocol.UDP),
All(com.pulumi.azurenative.security.enums.Protocol.All),
;
override fun toJava(): com.pulumi.azurenative.security.enums.Protocol = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.security.enums.Protocol): Protocol =
Protocol.values().first { it.javaValue == javaType }
}
}