commonMain.aws.sdk.kotlin.services.datasync.model.SmbVersion.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datasync.model
import kotlin.collections.List
public sealed class SmbVersion {
public abstract val value: kotlin.String
public object Automatic : aws.sdk.kotlin.services.datasync.model.SmbVersion() {
override val value: kotlin.String = "AUTOMATIC"
override fun toString(): kotlin.String = "Automatic"
}
public object Smb1 : aws.sdk.kotlin.services.datasync.model.SmbVersion() {
override val value: kotlin.String = "SMB1"
override fun toString(): kotlin.String = "Smb1"
}
public object Smb2 : aws.sdk.kotlin.services.datasync.model.SmbVersion() {
override val value: kotlin.String = "SMB2"
override fun toString(): kotlin.String = "Smb2"
}
public object Smb2_0 : aws.sdk.kotlin.services.datasync.model.SmbVersion() {
override val value: kotlin.String = "SMB2_0"
override fun toString(): kotlin.String = "Smb2_0"
}
public object Smb3 : aws.sdk.kotlin.services.datasync.model.SmbVersion() {
override val value: kotlin.String = "SMB3"
override fun toString(): kotlin.String = "Smb3"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.datasync.model.SmbVersion() {
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.datasync.model.SmbVersion = when (value) {
"AUTOMATIC" -> Automatic
"SMB1" -> Smb1
"SMB2" -> Smb2
"SMB2_0" -> Smb2_0
"SMB3" -> Smb3
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Automatic,
Smb1,
Smb2,
Smb2_0,
Smb3,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy