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

commonMain.aws.sdk.kotlin.services.route53domains.model.DomainAvailability.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.route53domains.model

import kotlin.collections.List

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

    public object Available : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        override val value: kotlin.String = "AVAILABLE"
        override fun toString(): kotlin.String = "Available"
    }

    public object AvailablePreorder : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        override val value: kotlin.String = "AVAILABLE_PREORDER"
        override fun toString(): kotlin.String = "AvailablePreorder"
    }

    public object AvailableReserved : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        override val value: kotlin.String = "AVAILABLE_RESERVED"
        override fun toString(): kotlin.String = "AvailableReserved"
    }

    public object DontKnow : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        override val value: kotlin.String = "DONT_KNOW"
        override fun toString(): kotlin.String = "DontKnow"
    }

    public object Reserved : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        override val value: kotlin.String = "RESERVED"
        override fun toString(): kotlin.String = "Reserved"
    }

    public object Unavailable : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        override val value: kotlin.String = "UNAVAILABLE"
        override fun toString(): kotlin.String = "Unavailable"
    }

    public object UnavailablePremium : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        override val value: kotlin.String = "UNAVAILABLE_PREMIUM"
        override fun toString(): kotlin.String = "UnavailablePremium"
    }

    public object UnavailableRestricted : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        override val value: kotlin.String = "UNAVAILABLE_RESTRICTED"
        override fun toString(): kotlin.String = "UnavailableRestricted"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
        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.DomainAvailability = when (value) {
            "AVAILABLE" -> Available
            "AVAILABLE_PREORDER" -> AvailablePreorder
            "AVAILABLE_RESERVED" -> AvailableReserved
            "DONT_KNOW" -> DontKnow
            "RESERVED" -> Reserved
            "UNAVAILABLE" -> Unavailable
            "UNAVAILABLE_PREMIUM" -> UnavailablePremium
            "UNAVAILABLE_RESTRICTED" -> UnavailableRestricted
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Available,
            AvailablePreorder,
            AvailableReserved,
            DontKnow,
            Reserved,
            Unavailable,
            UnavailablePremium,
            UnavailableRestricted,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy