All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.bedrockruntime.model.GuardrailContentQualifier.kt Maven / Gradle / Ivy

There is a newer version: 1.3.80
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.bedrockruntime.model

import kotlin.collections.List

public sealed class GuardrailContentQualifier {
    public abstract val value: kotlin.String

    public object GroundingSource : aws.sdk.kotlin.services.bedrockruntime.model.GuardrailContentQualifier() {
        override val value: kotlin.String = "grounding_source"
        override fun toString(): kotlin.String = "GroundingSource"
    }

    public object GuardContent : aws.sdk.kotlin.services.bedrockruntime.model.GuardrailContentQualifier() {
        override val value: kotlin.String = "guard_content"
        override fun toString(): kotlin.String = "GuardContent"
    }

    public object Query : aws.sdk.kotlin.services.bedrockruntime.model.GuardrailContentQualifier() {
        override val value: kotlin.String = "query"
        override fun toString(): kotlin.String = "Query"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.bedrockruntime.model.GuardrailContentQualifier() {
        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.bedrockruntime.model.GuardrailContentQualifier = when (value) {
            "grounding_source" -> GroundingSource
            "guard_content" -> GuardContent
            "query" -> Query
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            GroundingSource,
            GuardContent,
            Query,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy