commonMain.aws.sdk.kotlin.services.transcribestreaming.model.Sentiment.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transcribestreaming-jvm Show documentation
Show all versions of transcribestreaming-jvm Show documentation
The AWS SDK for Kotlin client for Transcribe Streaming
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transcribestreaming.model
import kotlin.collections.List
public sealed class Sentiment {
public abstract val value: kotlin.String
public object Mixed : aws.sdk.kotlin.services.transcribestreaming.model.Sentiment() {
override val value: kotlin.String = "MIXED"
override fun toString(): kotlin.String = value
}
public object Negative : aws.sdk.kotlin.services.transcribestreaming.model.Sentiment() {
override val value: kotlin.String = "NEGATIVE"
override fun toString(): kotlin.String = value
}
public object Neutral : aws.sdk.kotlin.services.transcribestreaming.model.Sentiment() {
override val value: kotlin.String = "NEUTRAL"
override fun toString(): kotlin.String = value
}
public object Positive : aws.sdk.kotlin.services.transcribestreaming.model.Sentiment() {
override val value: kotlin.String = "POSITIVE"
override fun toString(): kotlin.String = value
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.transcribestreaming.model.Sentiment() {
override fun toString(): kotlin.String = value
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.transcribestreaming.model.Sentiment = when(str) {
"MIXED" -> Mixed
"NEGATIVE" -> Negative
"NEUTRAL" -> Neutral
"POSITIVE" -> Positive
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = listOf(
Mixed,
Negative,
Neutral,
Positive
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy