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