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

commonMain.aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat.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 DocumentFormat {
    public abstract val value: kotlin.String

    public object Csv : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "csv"
        override fun toString(): kotlin.String = "Csv"
    }

    public object Doc : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "doc"
        override fun toString(): kotlin.String = "Doc"
    }

    public object Docx : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "docx"
        override fun toString(): kotlin.String = "Docx"
    }

    public object Html : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "html"
        override fun toString(): kotlin.String = "Html"
    }

    public object Md : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "md"
        override fun toString(): kotlin.String = "Md"
    }

    public object Pdf : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "pdf"
        override fun toString(): kotlin.String = "Pdf"
    }

    public object Txt : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "txt"
        override fun toString(): kotlin.String = "Txt"
    }

    public object Xls : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "xls"
        override fun toString(): kotlin.String = "Xls"
    }

    public object Xlsx : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        override val value: kotlin.String = "xlsx"
        override fun toString(): kotlin.String = "Xlsx"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.bedrockruntime.model.DocumentFormat() {
        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.DocumentFormat = when (value) {
            "csv" -> Csv
            "doc" -> Doc
            "docx" -> Docx
            "html" -> Html
            "md" -> Md
            "pdf" -> Pdf
            "txt" -> Txt
            "xls" -> Xls
            "xlsx" -> Xlsx
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Csv,
            Doc,
            Docx,
            Html,
            Md,
            Pdf,
            Txt,
            Xls,
            Xlsx,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy