commonMain.aws.sdk.kotlin.services.ecrpublic.model.ImageFailureCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecrpublic-jvm Show documentation
Show all versions of ecrpublic-jvm Show documentation
The AWS SDK for Kotlin client for ECR PUBLIC
// 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,
)
}
}