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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pinpointsmsvoicev2.model

import kotlin.collections.List

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

    public object Closed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        override val value: kotlin.String = "CLOSED"
        override fun toString(): kotlin.String = "Closed"
    }

    public object Complete : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        override val value: kotlin.String = "COMPLETE"
        override fun toString(): kotlin.String = "Complete"
    }

    public object Created : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        override val value: kotlin.String = "CREATED"
        override fun toString(): kotlin.String = "Created"
    }

    public object Deleted : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        override val value: kotlin.String = "DELETED"
        override fun toString(): kotlin.String = "Deleted"
    }

    public object Provisioning : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        override val value: kotlin.String = "PROVISIONING"
        override fun toString(): kotlin.String = "Provisioning"
    }

    public object RequiresUpdates : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        override val value: kotlin.String = "REQUIRES_UPDATES"
        override fun toString(): kotlin.String = "RequiresUpdates"
    }

    public object Reviewing : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        override val value: kotlin.String = "REVIEWING"
        override fun toString(): kotlin.String = "Reviewing"
    }

    public object Submitted : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        override val value: kotlin.String = "SUBMITTED"
        override fun toString(): kotlin.String = "Submitted"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
        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.pinpointsmsvoicev2.model.RegistrationStatus = when (value) {
            "CLOSED" -> Closed
            "COMPLETE" -> Complete
            "CREATED" -> Created
            "DELETED" -> Deleted
            "PROVISIONING" -> Provisioning
            "REQUIRES_UPDATES" -> RequiresUpdates
            "REVIEWING" -> Reviewing
            "SUBMITTED" -> Submitted
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Closed,
            Complete,
            Created,
            Deleted,
            Provisioning,
            RequiresUpdates,
            Reviewing,
            Submitted,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy