commonMain.aws.sdk.kotlin.services.apprunner.model.Runtime.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apprunner-jvm Show documentation
Show all versions of apprunner-jvm Show documentation
The AWS SDK for Kotlin client for AppRunner
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apprunner.model
import kotlin.collections.List
public sealed class Runtime {
public abstract val value: kotlin.String
public object Corretto11 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "CORRETTO_11"
override fun toString(): kotlin.String = "Corretto11"
}
public object Corretto8 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "CORRETTO_8"
override fun toString(): kotlin.String = "Corretto8"
}
public object Dotnet6 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "DOTNET_6"
override fun toString(): kotlin.String = "Dotnet6"
}
public object Go1 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "GO_1"
override fun toString(): kotlin.String = "Go1"
}
public object Nodejs12 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "NODEJS_12"
override fun toString(): kotlin.String = "Nodejs12"
}
public object Nodejs14 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "NODEJS_14"
override fun toString(): kotlin.String = "Nodejs14"
}
public object Nodejs16 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "NODEJS_16"
override fun toString(): kotlin.String = "Nodejs16"
}
public object Nodejs18 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "NODEJS_18"
override fun toString(): kotlin.String = "Nodejs18"
}
public object Php81 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "PHP_81"
override fun toString(): kotlin.String = "Php81"
}
public object Python3 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "PYTHON_3"
override fun toString(): kotlin.String = "Python3"
}
public object Python311 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "PYTHON_311"
override fun toString(): kotlin.String = "Python311"
}
public object Ruby31 : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override val value: kotlin.String = "RUBY_31"
override fun toString(): kotlin.String = "Ruby31"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.apprunner.model.Runtime() {
override fun toString(): kotlin.String = "SdkUnknown($value)"
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.apprunner.model.Runtime = when (value) {
"CORRETTO_11" -> Corretto11
"CORRETTO_8" -> Corretto8
"DOTNET_6" -> Dotnet6
"GO_1" -> Go1
"NODEJS_12" -> Nodejs12
"NODEJS_14" -> Nodejs14
"NODEJS_16" -> Nodejs16
"NODEJS_18" -> Nodejs18
"PHP_81" -> Php81
"PYTHON_3" -> Python3
"PYTHON_311" -> Python311
"RUBY_31" -> Ruby31
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Corretto11,
Corretto8,
Dotnet6,
Go1,
Nodejs12,
Nodejs14,
Nodejs16,
Nodejs18,
Php81,
Python3,
Python311,
Ruby31,
)
}
}