com.pulumi.azurenative.apicenter.kotlin.enums.ApiKind.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apicenter.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* Kind of API. For example, REST or GraphQL.
*/
public enum class ApiKind(
public val javaValue: com.pulumi.azurenative.apicenter.enums.ApiKind,
) : ConvertibleToJava {
/**
* A Representational State Transfer Api
*/
Rest(com.pulumi.azurenative.apicenter.enums.ApiKind.Rest),
/**
* A Graph query language Api
*/
Graphql(com.pulumi.azurenative.apicenter.enums.ApiKind.Graphql),
/**
* A gRPC Api
*/
Grpc(com.pulumi.azurenative.apicenter.enums.ApiKind.Grpc),
/**
* A SOAP Api
*/
Soap(com.pulumi.azurenative.apicenter.enums.ApiKind.Soap),
/**
* Web Hook
*/
Webhook(com.pulumi.azurenative.apicenter.enums.ApiKind.Webhook),
/**
* Web Socket
*/
Websocket(com.pulumi.azurenative.apicenter.enums.ApiKind.Websocket),
;
override fun toJava(): com.pulumi.azurenative.apicenter.enums.ApiKind = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.apicenter.enums.ApiKind): ApiKind =
ApiKind.values().first { it.javaValue == javaType }
}
}