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

commonMain.aws.sdk.kotlin.services.opensearch.model.AutoTuneState.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.opensearch.model

import kotlin.collections.List

/**
 * The Auto-Tune state for the domain. For valid states see [Auto-Tune for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html).
 */
public sealed class AutoTuneState {
    public abstract val value: kotlin.String

    public object Disabled : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "DISABLED"
        override fun toString(): kotlin.String = "Disabled"
    }

    public object DisabledAndRollbackComplete : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "DISABLED_AND_ROLLBACK_COMPLETE"
        override fun toString(): kotlin.String = "DisabledAndRollbackComplete"
    }

    public object DisabledAndRollbackError : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "DISABLED_AND_ROLLBACK_ERROR"
        override fun toString(): kotlin.String = "DisabledAndRollbackError"
    }

    public object DisabledAndRollbackInProgress : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "DISABLED_AND_ROLLBACK_IN_PROGRESS"
        override fun toString(): kotlin.String = "DisabledAndRollbackInProgress"
    }

    public object DisabledAndRollbackScheduled : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "DISABLED_AND_ROLLBACK_SCHEDULED"
        override fun toString(): kotlin.String = "DisabledAndRollbackScheduled"
    }

    public object DisableInProgress : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "DISABLE_IN_PROGRESS"
        override fun toString(): kotlin.String = "DisableInProgress"
    }

    public object Enabled : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "ENABLED"
        override fun toString(): kotlin.String = "Enabled"
    }

    public object EnableInProgress : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "ENABLE_IN_PROGRESS"
        override fun toString(): kotlin.String = "EnableInProgress"
    }

    public object Error : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        override val value: kotlin.String = "ERROR"
        override fun toString(): kotlin.String = "Error"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.opensearch.model.AutoTuneState() {
        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.opensearch.model.AutoTuneState = when (value) {
            "DISABLED" -> Disabled
            "DISABLED_AND_ROLLBACK_COMPLETE" -> DisabledAndRollbackComplete
            "DISABLED_AND_ROLLBACK_ERROR" -> DisabledAndRollbackError
            "DISABLED_AND_ROLLBACK_IN_PROGRESS" -> DisabledAndRollbackInProgress
            "DISABLED_AND_ROLLBACK_SCHEDULED" -> DisabledAndRollbackScheduled
            "DISABLE_IN_PROGRESS" -> DisableInProgress
            "ENABLED" -> Enabled
            "ENABLE_IN_PROGRESS" -> EnableInProgress
            "ERROR" -> Error
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Disabled,
            DisabledAndRollbackComplete,
            DisabledAndRollbackError,
            DisabledAndRollbackInProgress,
            DisabledAndRollbackScheduled,
            DisableInProgress,
            Enabled,
            EnableInProgress,
            Error,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy