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

commonMain.aws.sdk.kotlin.services.datasync.model.S3StorageClass.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datasync.model

import kotlin.collections.List

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

    public object DeepArchive : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        override val value: kotlin.String = "DEEP_ARCHIVE"
        override fun toString(): kotlin.String = "DeepArchive"
    }

    public object Glacier : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        override val value: kotlin.String = "GLACIER"
        override fun toString(): kotlin.String = "Glacier"
    }

    public object GlacierInstantRetrieval : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        override val value: kotlin.String = "GLACIER_INSTANT_RETRIEVAL"
        override fun toString(): kotlin.String = "GlacierInstantRetrieval"
    }

    public object IntelligentTiering : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        override val value: kotlin.String = "INTELLIGENT_TIERING"
        override fun toString(): kotlin.String = "IntelligentTiering"
    }

    public object OnezoneIa : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        override val value: kotlin.String = "ONEZONE_IA"
        override fun toString(): kotlin.String = "OnezoneIa"
    }

    public object Outposts : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        override val value: kotlin.String = "OUTPOSTS"
        override fun toString(): kotlin.String = "Outposts"
    }

    public object Standard : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        override val value: kotlin.String = "STANDARD"
        override fun toString(): kotlin.String = "Standard"
    }

    public object StandardIa : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        override val value: kotlin.String = "STANDARD_IA"
        override fun toString(): kotlin.String = "StandardIa"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.datasync.model.S3StorageClass() {
        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.datasync.model.S3StorageClass = when (value) {
            "DEEP_ARCHIVE" -> DeepArchive
            "GLACIER" -> Glacier
            "GLACIER_INSTANT_RETRIEVAL" -> GlacierInstantRetrieval
            "INTELLIGENT_TIERING" -> IntelligentTiering
            "ONEZONE_IA" -> OnezoneIa
            "OUTPOSTS" -> Outposts
            "STANDARD" -> Standard
            "STANDARD_IA" -> StandardIa
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            DeepArchive,
            Glacier,
            GlacierInstantRetrieval,
            IntelligentTiering,
            OnezoneIa,
            Outposts,
            Standard,
            StandardIa,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy