commonMain.aws.sdk.kotlin.services.glacier.model.FileHeaderInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glacier-jvm Show documentation
Show all versions of glacier-jvm Show documentation
The AWS Kotlin client for Glacier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glacier.model
import kotlin.collections.List
public sealed class FileHeaderInfo {
public abstract val value: kotlin.String
public object Ignore : aws.sdk.kotlin.services.glacier.model.FileHeaderInfo() {
override val value: kotlin.String = "IGNORE"
override fun toString(): kotlin.String = "Ignore"
}
public object None : aws.sdk.kotlin.services.glacier.model.FileHeaderInfo() {
override val value: kotlin.String = "NONE"
override fun toString(): kotlin.String = "None"
}
public object Use : aws.sdk.kotlin.services.glacier.model.FileHeaderInfo() {
override val value: kotlin.String = "USE"
override fun toString(): kotlin.String = "Use"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glacier.model.FileHeaderInfo() {
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.glacier.model.FileHeaderInfo = when (value) {
"IGNORE" -> Ignore
"NONE" -> None
"USE" -> Use
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Ignore,
None,
Use,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy