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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ParquetVersionValue.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databasemigrationservice.model

import kotlin.collections.List

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

    public object Parquet1_0 : aws.sdk.kotlin.services.databasemigrationservice.model.ParquetVersionValue() {
        override val value: kotlin.String = "parquet-1-0"
        override fun toString(): kotlin.String = "Parquet1_0"
    }

    public object Parquet2_0 : aws.sdk.kotlin.services.databasemigrationservice.model.ParquetVersionValue() {
        override val value: kotlin.String = "parquet-2-0"
        override fun toString(): kotlin.String = "Parquet2_0"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.databasemigrationservice.model.ParquetVersionValue() {
        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.databasemigrationservice.model.ParquetVersionValue = when (value) {
            "parquet-1-0" -> Parquet1_0
            "parquet-2-0" -> Parquet2_0
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Parquet1_0,
            Parquet2_0,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy