commonMain.aws.sdk.kotlin.services.devicefarm.model.InteractionMode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.model
import kotlin.collections.List
public sealed class InteractionMode {
public abstract val value: kotlin.String
public object Interactive : aws.sdk.kotlin.services.devicefarm.model.InteractionMode() {
override val value: kotlin.String = "INTERACTIVE"
override fun toString(): kotlin.String = "Interactive"
}
public object NoVideo : aws.sdk.kotlin.services.devicefarm.model.InteractionMode() {
override val value: kotlin.String = "NO_VIDEO"
override fun toString(): kotlin.String = "NoVideo"
}
public object VideoOnly : aws.sdk.kotlin.services.devicefarm.model.InteractionMode() {
override val value: kotlin.String = "VIDEO_ONLY"
override fun toString(): kotlin.String = "VideoOnly"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.devicefarm.model.InteractionMode() {
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.devicefarm.model.InteractionMode = when (value) {
"INTERACTIVE" -> Interactive
"NO_VIDEO" -> NoVideo
"VIDEO_ONLY" -> VideoOnly
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Interactive,
NoVideo,
VideoOnly,
)
}
}