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

commonMain.aws.sdk.kotlin.services.snowball.model.ImpactLevel.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.snowball.model

import kotlin.collections.List

public sealed class ImpactLevel {
    public abstract val value: kotlin.String

    public object Il2 : aws.sdk.kotlin.services.snowball.model.ImpactLevel() {
        override val value: kotlin.String = "IL2"
        override fun toString(): kotlin.String = "Il2"
    }

    public object Il4 : aws.sdk.kotlin.services.snowball.model.ImpactLevel() {
        override val value: kotlin.String = "IL4"
        override fun toString(): kotlin.String = "Il4"
    }

    public object Il5 : aws.sdk.kotlin.services.snowball.model.ImpactLevel() {
        override val value: kotlin.String = "IL5"
        override fun toString(): kotlin.String = "Il5"
    }

    public object Il6 : aws.sdk.kotlin.services.snowball.model.ImpactLevel() {
        override val value: kotlin.String = "IL6"
        override fun toString(): kotlin.String = "Il6"
    }

    public object Il99 : aws.sdk.kotlin.services.snowball.model.ImpactLevel() {
        override val value: kotlin.String = "IL99"
        override fun toString(): kotlin.String = "Il99"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.snowball.model.ImpactLevel() {
        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.snowball.model.ImpactLevel = when (value) {
            "IL2" -> Il2
            "IL4" -> Il4
            "IL5" -> Il5
            "IL6" -> Il6
            "IL99" -> Il99
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            Il2,
            Il4,
            Il5,
            Il6,
            Il99,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy