commonMain.aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSignature.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import kotlin.collections.List
public sealed class ActionGroupSignature {
public abstract val value: kotlin.String
public object AmazonCodeinterpreter : aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSignature() {
override val value: kotlin.String = "AMAZON.CodeInterpreter"
override fun toString(): kotlin.String = "AmazonCodeinterpreter"
}
public object AmazonUserinput : aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSignature() {
override val value: kotlin.String = "AMAZON.UserInput"
override fun toString(): kotlin.String = "AmazonUserinput"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.bedrockagent.model.ActionGroupSignature() {
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.bedrockagent.model.ActionGroupSignature = when (value) {
"AMAZON.CodeInterpreter" -> AmazonCodeinterpreter
"AMAZON.UserInput" -> AmazonUserinput
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
AmazonCodeinterpreter,
AmazonUserinput,
)
}
}