commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointsmsvoicev2-jvm Show documentation
Show all versions of pinpointsmsvoicev2-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint SMS Voice V2
// 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 RequiresAuthentication : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationStatus() {
override val value: kotlin.String = "REQUIRES_AUTHENTICATION"
override fun toString(): kotlin.String = "RequiresAuthentication"
}
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_AUTHENTICATION" -> RequiresAuthentication
"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,
RequiresAuthentication,
RequiresUpdates,
Reviewing,
Submitted,
)
}
}