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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DatePartitionSequenceValue.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 DatePartitionSequenceValue {
    public abstract val value: kotlin.String

    public object Ddmmyyyy : aws.sdk.kotlin.services.databasemigrationservice.model.DatePartitionSequenceValue() {
        override val value: kotlin.String = "DDMMYYYY"
        override fun toString(): kotlin.String = "Ddmmyyyy"
    }

    public object Mmyyyydd : aws.sdk.kotlin.services.databasemigrationservice.model.DatePartitionSequenceValue() {
        override val value: kotlin.String = "MMYYYYDD"
        override fun toString(): kotlin.String = "Mmyyyydd"
    }

    public object Yyyymm : aws.sdk.kotlin.services.databasemigrationservice.model.DatePartitionSequenceValue() {
        override val value: kotlin.String = "YYYYMM"
        override fun toString(): kotlin.String = "Yyyymm"
    }

    public object Yyyymmdd : aws.sdk.kotlin.services.databasemigrationservice.model.DatePartitionSequenceValue() {
        override val value: kotlin.String = "YYYYMMDD"
        override fun toString(): kotlin.String = "Yyyymmdd"
    }

    public object Yyyymmddhh : aws.sdk.kotlin.services.databasemigrationservice.model.DatePartitionSequenceValue() {
        override val value: kotlin.String = "YYYYMMDDHH"
        override fun toString(): kotlin.String = "Yyyymmddhh"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.databasemigrationservice.model.DatePartitionSequenceValue() {
        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.DatePartitionSequenceValue = when (value) {
            "DDMMYYYY" -> Ddmmyyyy
            "MMYYYYDD" -> Mmyyyydd
            "YYYYMM" -> Yyyymm
            "YYYYMMDD" -> Yyyymmdd
            "YYYYMMDDHH" -> Yyyymmddhh
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Ddmmyyyy,
            Mmyyyydd,
            Yyyymm,
            Yyyymmdd,
            Yyyymmddhh,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy