All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.apprunner.model.Runtime.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// 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,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy