com.pulumi.azurenative.eventgrid.kotlin.enums.PublicNetworkAccess.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.eventgrid.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* This determines if traffic is allowed over public network. By default it is enabled.
* You can further restrict to specific IPs by configuring
*/
public enum class PublicNetworkAccess(
public val javaValue: com.pulumi.azurenative.eventgrid.enums.PublicNetworkAccess,
) : ConvertibleToJava {
Enabled(com.pulumi.azurenative.eventgrid.enums.PublicNetworkAccess.Enabled),
Disabled(com.pulumi.azurenative.eventgrid.enums.PublicNetworkAccess.Disabled),
;
override fun toJava(): com.pulumi.azurenative.eventgrid.enums.PublicNetworkAccess = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.eventgrid.enums.PublicNetworkAccess): PublicNetworkAccess = PublicNetworkAccess.values().first { it.javaValue == javaType }
}
}