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

commonMain.aws.sdk.kotlin.services.lookoutequipment.model.AutoPromotionResult.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lookoutequipment.model

import kotlin.collections.List

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

    public object ModelNotPromoted : aws.sdk.kotlin.services.lookoutequipment.model.AutoPromotionResult() {
        override val value: kotlin.String = "MODEL_NOT_PROMOTED"
        override fun toString(): kotlin.String = "ModelNotPromoted"
    }

    public object ModelPromoted : aws.sdk.kotlin.services.lookoutequipment.model.AutoPromotionResult() {
        override val value: kotlin.String = "MODEL_PROMOTED"
        override fun toString(): kotlin.String = "ModelPromoted"
    }

    public object RetrainingCancelled : aws.sdk.kotlin.services.lookoutequipment.model.AutoPromotionResult() {
        override val value: kotlin.String = "RETRAINING_CANCELLED"
        override fun toString(): kotlin.String = "RetrainingCancelled"
    }

    public object RetrainingCustomerError : aws.sdk.kotlin.services.lookoutequipment.model.AutoPromotionResult() {
        override val value: kotlin.String = "RETRAINING_CUSTOMER_ERROR"
        override fun toString(): kotlin.String = "RetrainingCustomerError"
    }

    public object RetrainingInternalError : aws.sdk.kotlin.services.lookoutequipment.model.AutoPromotionResult() {
        override val value: kotlin.String = "RETRAINING_INTERNAL_ERROR"
        override fun toString(): kotlin.String = "RetrainingInternalError"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lookoutequipment.model.AutoPromotionResult() {
        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.lookoutequipment.model.AutoPromotionResult = when (value) {
            "MODEL_NOT_PROMOTED" -> ModelNotPromoted
            "MODEL_PROMOTED" -> ModelPromoted
            "RETRAINING_CANCELLED" -> RetrainingCancelled
            "RETRAINING_CUSTOMER_ERROR" -> RetrainingCustomerError
            "RETRAINING_INTERNAL_ERROR" -> RetrainingInternalError
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            ModelNotPromoted,
            ModelPromoted,
            RetrainingCancelled,
            RetrainingCustomerError,
            RetrainingInternalError,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy