
commonMain.aws.sdk.kotlin.services.honeycode.model.Format.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.honeycode.model
import kotlin.collections.List
public sealed class Format {
public abstract val value: kotlin.String
public object Accounting : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "ACCOUNTING"
override fun toString(): kotlin.String = "Accounting"
}
public object Auto : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "AUTO"
override fun toString(): kotlin.String = "Auto"
}
public object Contact : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "CONTACT"
override fun toString(): kotlin.String = "Contact"
}
public object Currency : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "CURRENCY"
override fun toString(): kotlin.String = "Currency"
}
public object Date : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "DATE"
override fun toString(): kotlin.String = "Date"
}
public object DateTime : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "DATE_TIME"
override fun toString(): kotlin.String = "DateTime"
}
public object Number : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "NUMBER"
override fun toString(): kotlin.String = "Number"
}
public object Percentage : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "PERCENTAGE"
override fun toString(): kotlin.String = "Percentage"
}
public object Rowlink : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "ROWLINK"
override fun toString(): kotlin.String = "Rowlink"
}
public object Rowset : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "ROWSET"
override fun toString(): kotlin.String = "Rowset"
}
public object Text : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "TEXT"
override fun toString(): kotlin.String = "Text"
}
public object Time : aws.sdk.kotlin.services.honeycode.model.Format() {
override val value: kotlin.String = "TIME"
override fun toString(): kotlin.String = "Time"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.honeycode.model.Format() {
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.honeycode.model.Format = when (value) {
"ACCOUNTING" -> Accounting
"AUTO" -> Auto
"CONTACT" -> Contact
"CURRENCY" -> Currency
"DATE" -> Date
"DATE_TIME" -> DateTime
"NUMBER" -> Number
"PERCENTAGE" -> Percentage
"ROWLINK" -> Rowlink
"ROWSET" -> Rowset
"TEXT" -> Text
"TIME" -> Time
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Accounting,
Auto,
Contact,
Currency,
Date,
DateTime,
Number,
Percentage,
Rowlink,
Rowset,
Text,
Time,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy