commonMain.aws.sdk.kotlin.services.route53domains.model.StatusFlag.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53domains-jvm Show documentation
Show all versions of route53domains-jvm Show documentation
The AWS SDK for Kotlin client for Route 53 Domains
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53domains.model
import kotlin.collections.List
public sealed class StatusFlag {
public abstract val value: kotlin.String
public object PendingAcceptance : aws.sdk.kotlin.services.route53domains.model.StatusFlag() {
override val value: kotlin.String = "PENDING_ACCEPTANCE"
override fun toString(): kotlin.String = "PendingAcceptance"
}
public object PendingAuthorization : aws.sdk.kotlin.services.route53domains.model.StatusFlag() {
override val value: kotlin.String = "PENDING_AUTHORIZATION"
override fun toString(): kotlin.String = "PendingAuthorization"
}
public object PendingCustomerAction : aws.sdk.kotlin.services.route53domains.model.StatusFlag() {
override val value: kotlin.String = "PENDING_CUSTOMER_ACTION"
override fun toString(): kotlin.String = "PendingCustomerAction"
}
public object PendingPaymentVerification : aws.sdk.kotlin.services.route53domains.model.StatusFlag() {
override val value: kotlin.String = "PENDING_PAYMENT_VERIFICATION"
override fun toString(): kotlin.String = "PendingPaymentVerification"
}
public object PendingSupportCase : aws.sdk.kotlin.services.route53domains.model.StatusFlag() {
override val value: kotlin.String = "PENDING_SUPPORT_CASE"
override fun toString(): kotlin.String = "PendingSupportCase"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.route53domains.model.StatusFlag() {
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.route53domains.model.StatusFlag = when (value) {
"PENDING_ACCEPTANCE" -> PendingAcceptance
"PENDING_AUTHORIZATION" -> PendingAuthorization
"PENDING_CUSTOMER_ACTION" -> PendingCustomerAction
"PENDING_PAYMENT_VERIFICATION" -> PendingPaymentVerification
"PENDING_SUPPORT_CASE" -> PendingSupportCase
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
PendingAcceptance,
PendingAuthorization,
PendingCustomerAction,
PendingPaymentVerification,
PendingSupportCase,
)
}
}