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

commonMain.aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ecrpublic.model

import kotlin.collections.List

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

    public object ImageNotFound : aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode() {
        override val value: kotlin.String = "ImageNotFound"
        override fun toString(): kotlin.String = "ImageNotFound"
    }

    public object ImageReferencedByManifestList : aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode() {
        override val value: kotlin.String = "ImageReferencedByManifestList"
        override fun toString(): kotlin.String = "ImageReferencedByManifestList"
    }

    public object ImageTagDoesNotMatchDigest : aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode() {
        override val value: kotlin.String = "ImageTagDoesNotMatchDigest"
        override fun toString(): kotlin.String = "ImageTagDoesNotMatchDigest"
    }

    public object InvalidImageDigest : aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode() {
        override val value: kotlin.String = "InvalidImageDigest"
        override fun toString(): kotlin.String = "InvalidImageDigest"
    }

    public object InvalidImageTag : aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode() {
        override val value: kotlin.String = "InvalidImageTag"
        override fun toString(): kotlin.String = "InvalidImageTag"
    }

    public object KmsError : aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode() {
        override val value: kotlin.String = "KmsError"
        override fun toString(): kotlin.String = "KmsError"
    }

    public object MissingDigestAndTag : aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode() {
        override val value: kotlin.String = "MissingDigestAndTag"
        override fun toString(): kotlin.String = "MissingDigestAndTag"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode() {
        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.ecrpublic.model.ImageFailureCode = when (value) {
            "ImageNotFound" -> ImageNotFound
            "ImageReferencedByManifestList" -> ImageReferencedByManifestList
            "ImageTagDoesNotMatchDigest" -> ImageTagDoesNotMatchDigest
            "InvalidImageDigest" -> InvalidImageDigest
            "InvalidImageTag" -> InvalidImageTag
            "KmsError" -> KmsError
            "MissingDigestAndTag" -> MissingDigestAndTag
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            ImageNotFound,
            ImageReferencedByManifestList,
            ImageTagDoesNotMatchDigest,
            InvalidImageDigest,
            InvalidImageTag,
            KmsError,
            MissingDigestAndTag,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy