commonMain.aws.sdk.kotlin.services.transfer.model.EncryptionAlg.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transfer-jvm Show documentation
Show all versions of transfer-jvm Show documentation
The AWS SDK for Kotlin client for Transfer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transfer.model
import kotlin.collections.List
public sealed class EncryptionAlg {
public abstract val value: kotlin.String
public object Aes128Cbc : aws.sdk.kotlin.services.transfer.model.EncryptionAlg() {
override val value: kotlin.String = "AES128_CBC"
override fun toString(): kotlin.String = "Aes128Cbc"
}
public object Aes192Cbc : aws.sdk.kotlin.services.transfer.model.EncryptionAlg() {
override val value: kotlin.String = "AES192_CBC"
override fun toString(): kotlin.String = "Aes192Cbc"
}
public object Aes256Cbc : aws.sdk.kotlin.services.transfer.model.EncryptionAlg() {
override val value: kotlin.String = "AES256_CBC"
override fun toString(): kotlin.String = "Aes256Cbc"
}
public object DesEde3Cbc : aws.sdk.kotlin.services.transfer.model.EncryptionAlg() {
override val value: kotlin.String = "DES_EDE3_CBC"
override fun toString(): kotlin.String = "DesEde3Cbc"
}
public object None : aws.sdk.kotlin.services.transfer.model.EncryptionAlg() {
override val value: kotlin.String = "NONE"
override fun toString(): kotlin.String = "None"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.transfer.model.EncryptionAlg() {
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.transfer.model.EncryptionAlg = when (value) {
"AES128_CBC" -> Aes128Cbc
"AES192_CBC" -> Aes192Cbc
"AES256_CBC" -> Aes256Cbc
"DES_EDE3_CBC" -> DesEde3Cbc
"NONE" -> None
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Aes128Cbc,
Aes192Cbc,
Aes256Cbc,
DesEde3Cbc,
None,
)
}
}