commonMain.aws.sdk.kotlin.services.transfer.model.SftpAuthenticationMethods.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 SftpAuthenticationMethods {
public abstract val value: kotlin.String
public object Password : aws.sdk.kotlin.services.transfer.model.SftpAuthenticationMethods() {
override val value: kotlin.String = "PASSWORD"
override fun toString(): kotlin.String = "Password"
}
public object PublicKey : aws.sdk.kotlin.services.transfer.model.SftpAuthenticationMethods() {
override val value: kotlin.String = "PUBLIC_KEY"
override fun toString(): kotlin.String = "PublicKey"
}
public object PublicKeyAndPassword : aws.sdk.kotlin.services.transfer.model.SftpAuthenticationMethods() {
override val value: kotlin.String = "PUBLIC_KEY_AND_PASSWORD"
override fun toString(): kotlin.String = "PublicKeyAndPassword"
}
public object PublicKeyOrPassword : aws.sdk.kotlin.services.transfer.model.SftpAuthenticationMethods() {
override val value: kotlin.String = "PUBLIC_KEY_OR_PASSWORD"
override fun toString(): kotlin.String = "PublicKeyOrPassword"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.transfer.model.SftpAuthenticationMethods() {
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.SftpAuthenticationMethods = when (value) {
"PASSWORD" -> Password
"PUBLIC_KEY" -> PublicKey
"PUBLIC_KEY_AND_PASSWORD" -> PublicKeyAndPassword
"PUBLIC_KEY_OR_PASSWORD" -> PublicKeyOrPassword
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Password,
PublicKey,
PublicKeyAndPassword,
PublicKeyOrPassword,
)
}
}