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

commonMain.aws.sdk.kotlin.services.appstream.model.StackAttribute.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.appstream.model

import kotlin.collections.List

sealed class StackAttribute {

    abstract val value: kotlin.String

    object AccessEndpoints : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "ACCESS_ENDPOINTS"
        override fun toString(): kotlin.String = value
    }

    object EmbedHostDomains : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "EMBED_HOST_DOMAINS"
        override fun toString(): kotlin.String = value
    }

    object FeedbackUrl : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "FEEDBACK_URL"
        override fun toString(): kotlin.String = value
    }

    object IamRoleArn : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "IAM_ROLE_ARN"
        override fun toString(): kotlin.String = value
    }

    object RedirectUrl : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "REDIRECT_URL"
        override fun toString(): kotlin.String = value
    }

    object StorageConnectors : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "STORAGE_CONNECTORS"
        override fun toString(): kotlin.String = value
    }

    object StorageConnectorGoogleDrive : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "STORAGE_CONNECTOR_GOOGLE_DRIVE"
        override fun toString(): kotlin.String = value
    }

    object StorageConnectorHomefolders : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "STORAGE_CONNECTOR_HOMEFOLDERS"
        override fun toString(): kotlin.String = value
    }

    object StorageConnectorOneDrive : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "STORAGE_CONNECTOR_ONE_DRIVE"
        override fun toString(): kotlin.String = value
    }

    object ThemeName : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "THEME_NAME"
        override fun toString(): kotlin.String = value
    }

    object UserSettings : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override val value: kotlin.String = "USER_SETTINGS"
        override fun toString(): kotlin.String = value
    }

    data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appstream.model.StackAttribute() {
        override fun toString(): kotlin.String = value
    }

    companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.appstream.model.StackAttribute = when(str) {
            "ACCESS_ENDPOINTS" -> AccessEndpoints
            "EMBED_HOST_DOMAINS" -> EmbedHostDomains
            "FEEDBACK_URL" -> FeedbackUrl
            "IAM_ROLE_ARN" -> IamRoleArn
            "REDIRECT_URL" -> RedirectUrl
            "STORAGE_CONNECTORS" -> StorageConnectors
            "STORAGE_CONNECTOR_GOOGLE_DRIVE" -> StorageConnectorGoogleDrive
            "STORAGE_CONNECTOR_HOMEFOLDERS" -> StorageConnectorHomefolders
            "STORAGE_CONNECTOR_ONE_DRIVE" -> StorageConnectorOneDrive
            "THEME_NAME" -> ThemeName
            "USER_SETTINGS" -> UserSettings
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        fun values(): kotlin.collections.List = listOf(
            AccessEndpoints,
            EmbedHostDomains,
            FeedbackUrl,
            IamRoleArn,
            RedirectUrl,
            StorageConnectors,
            StorageConnectorGoogleDrive,
            StorageConnectorHomefolders,
            StorageConnectorOneDrive,
            ThemeName,
            UserSettings
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy