commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus.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 RegistrationVersionStatus {
public abstract val value: kotlin.String
public object Approved : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus() {
override val value: kotlin.String = "APPROVED"
override fun toString(): kotlin.String = "Approved"
}
public object Archived : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus() {
override val value: kotlin.String = "ARCHIVED"
override fun toString(): kotlin.String = "Archived"
}
public object Denied : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus() {
override val value: kotlin.String = "DENIED"
override fun toString(): kotlin.String = "Denied"
}
public object Discarded : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus() {
override val value: kotlin.String = "DISCARDED"
override fun toString(): kotlin.String = "Discarded"
}
public object Draft : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus() {
override val value: kotlin.String = "DRAFT"
override fun toString(): kotlin.String = "Draft"
}
public object Reviewing : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus() {
override val value: kotlin.String = "REVIEWING"
override fun toString(): kotlin.String = "Reviewing"
}
public object Revoked : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus() {
override val value: kotlin.String = "REVOKED"
override fun toString(): kotlin.String = "Revoked"
}
public object Submitted : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationVersionStatus() {
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.RegistrationVersionStatus() {
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.RegistrationVersionStatus = when (value) {
"APPROVED" -> Approved
"ARCHIVED" -> Archived
"DENIED" -> Denied
"DISCARDED" -> Discarded
"DRAFT" -> Draft
"REVIEWING" -> Reviewing
"REVOKED" -> Revoked
"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(
Approved,
Archived,
Denied,
Discarded,
Draft,
Reviewing,
Revoked,
Submitted,
)
}
}