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

commonMain.aws.sdk.kotlin.services.iotsitewise.model.ColumnName.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iotsitewise.model

import kotlin.collections.List

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

    public object Alias : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        override val value: kotlin.String = "ALIAS"
        override fun toString(): kotlin.String = "Alias"
    }

    public object AssetId : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        override val value: kotlin.String = "ASSET_ID"
        override fun toString(): kotlin.String = "AssetId"
    }

    public object DataType : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        override val value: kotlin.String = "DATA_TYPE"
        override fun toString(): kotlin.String = "DataType"
    }

    public object PropertyId : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        override val value: kotlin.String = "PROPERTY_ID"
        override fun toString(): kotlin.String = "PropertyId"
    }

    public object Quality : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        override val value: kotlin.String = "QUALITY"
        override fun toString(): kotlin.String = "Quality"
    }

    public object TimestampNanoOffset : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        override val value: kotlin.String = "TIMESTAMP_NANO_OFFSET"
        override fun toString(): kotlin.String = "TimestampNanoOffset"
    }

    public object TimestampSeconds : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        override val value: kotlin.String = "TIMESTAMP_SECONDS"
        override fun toString(): kotlin.String = "TimestampSeconds"
    }

    public object Value : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        override val value: kotlin.String = "VALUE"
        override fun toString(): kotlin.String = "Value"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotsitewise.model.ColumnName() {
        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.iotsitewise.model.ColumnName = when (value) {
            "ALIAS" -> Alias
            "ASSET_ID" -> AssetId
            "DATA_TYPE" -> DataType
            "PROPERTY_ID" -> PropertyId
            "QUALITY" -> Quality
            "TIMESTAMP_NANO_OFFSET" -> TimestampNanoOffset
            "TIMESTAMP_SECONDS" -> TimestampSeconds
            "VALUE" -> Value
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Alias,
            AssetId,
            DataType,
            PropertyId,
            Quality,
            TimestampNanoOffset,
            TimestampSeconds,
            Value,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy