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

commonMain.aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datazone.model

import kotlin.collections.List

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

    public object Failed : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        override val value: kotlin.String = "FAILED"
        override fun toString(): kotlin.String = "Failed"
    }

    public object PublishingFailed : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        override val value: kotlin.String = "PUBLISHING_FAILED"
        override fun toString(): kotlin.String = "PublishingFailed"
    }

    public object SkippedAlreadyImported : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        override val value: kotlin.String = "SKIPPED_ALREADY_IMPORTED"
        override fun toString(): kotlin.String = "SkippedAlreadyImported"
    }

    public object SkippedArchived : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        override val value: kotlin.String = "SKIPPED_ARCHIVED"
        override fun toString(): kotlin.String = "SkippedArchived"
    }

    public object SkippedNoAccess : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        override val value: kotlin.String = "SKIPPED_NO_ACCESS"
        override fun toString(): kotlin.String = "SkippedNoAccess"
    }

    public object SucceededCreated : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        override val value: kotlin.String = "SUCCEEDED_CREATED"
        override fun toString(): kotlin.String = "SucceededCreated"
    }

    public object SucceededUpdated : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        override val value: kotlin.String = "SUCCEEDED_UPDATED"
        override fun toString(): kotlin.String = "SucceededUpdated"
    }

    public object Unchanged : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        override val value: kotlin.String = "UNCHANGED"
        override fun toString(): kotlin.String = "Unchanged"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.datazone.model.DataAssetActivityStatus() {
        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.datazone.model.DataAssetActivityStatus = when (value) {
            "FAILED" -> Failed
            "PUBLISHING_FAILED" -> PublishingFailed
            "SKIPPED_ALREADY_IMPORTED" -> SkippedAlreadyImported
            "SKIPPED_ARCHIVED" -> SkippedArchived
            "SKIPPED_NO_ACCESS" -> SkippedNoAccess
            "SUCCEEDED_CREATED" -> SucceededCreated
            "SUCCEEDED_UPDATED" -> SucceededUpdated
            "UNCHANGED" -> Unchanged
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Failed,
            PublishingFailed,
            SkippedAlreadyImported,
            SkippedArchived,
            SkippedNoAccess,
            SucceededCreated,
            SucceededUpdated,
            Unchanged,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy