commonMain.aws.sdk.kotlin.services.snowball.model.DeviceServiceName.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 DeviceServiceName {
public abstract val value: kotlin.String
public object NfsOnDeviceService : aws.sdk.kotlin.services.snowball.model.DeviceServiceName() {
override val value: kotlin.String = "NFS_ON_DEVICE_SERVICE"
override fun toString(): kotlin.String = "NfsOnDeviceService"
}
public object S3OnDeviceService : aws.sdk.kotlin.services.snowball.model.DeviceServiceName() {
override val value: kotlin.String = "S3_ON_DEVICE_SERVICE"
override fun toString(): kotlin.String = "S3OnDeviceService"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.snowball.model.DeviceServiceName() {
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.DeviceServiceName = when (value) {
"NFS_ON_DEVICE_SERVICE" -> NfsOnDeviceService
"S3_ON_DEVICE_SERVICE" -> S3OnDeviceService
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
NfsOnDeviceService,
S3OnDeviceService,
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy