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

commonMain.aws.sdk.kotlin.services.glue.model.Permission.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.model

import kotlin.collections.List

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

    public object All : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "ALL"
        override fun toString(): kotlin.String = "All"
    }

    public object Alter : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "ALTER"
        override fun toString(): kotlin.String = "Alter"
    }

    public object CreateDatabase : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "CREATE_DATABASE"
        override fun toString(): kotlin.String = "CreateDatabase"
    }

    public object CreateTable : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "CREATE_TABLE"
        override fun toString(): kotlin.String = "CreateTable"
    }

    public object DataLocationAccess : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "DATA_LOCATION_ACCESS"
        override fun toString(): kotlin.String = "DataLocationAccess"
    }

    public object Delete : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "DELETE"
        override fun toString(): kotlin.String = "Delete"
    }

    public object Drop : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "DROP"
        override fun toString(): kotlin.String = "Drop"
    }

    public object Insert : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "INSERT"
        override fun toString(): kotlin.String = "Insert"
    }

    public object Select : aws.sdk.kotlin.services.glue.model.Permission() {
        override val value: kotlin.String = "SELECT"
        override fun toString(): kotlin.String = "Select"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.Permission() {
        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.glue.model.Permission = when (value) {
            "ALL" -> All
            "ALTER" -> Alter
            "CREATE_DATABASE" -> CreateDatabase
            "CREATE_TABLE" -> CreateTable
            "DATA_LOCATION_ACCESS" -> DataLocationAccess
            "DELETE" -> Delete
            "DROP" -> Drop
            "INSERT" -> Insert
            "SELECT" -> Select
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            All,
            Alter,
            CreateDatabase,
            CreateTable,
            DataLocationAccess,
            Delete,
            Drop,
            Insert,
            Select,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy