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

commonMain.aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.route53resolver.model

import kotlin.collections.List

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

    public object Attached : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "ATTACHED"
        override fun toString(): kotlin.String = "Attached"
    }

    public object Attaching : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "ATTACHING"
        override fun toString(): kotlin.String = "Attaching"
    }

    public object Creating : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "CREATING"
        override fun toString(): kotlin.String = "Creating"
    }

    public object DeleteFailedFasExpired : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "DELETE_FAILED_FAS_EXPIRED"
        override fun toString(): kotlin.String = "DeleteFailedFasExpired"
    }

    public object Deleting : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "DELETING"
        override fun toString(): kotlin.String = "Deleting"
    }

    public object Detaching : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "DETACHING"
        override fun toString(): kotlin.String = "Detaching"
    }

    public object FailedCreation : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "FAILED_CREATION"
        override fun toString(): kotlin.String = "FailedCreation"
    }

    public object FailedResourceGone : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "FAILED_RESOURCE_GONE"
        override fun toString(): kotlin.String = "FailedResourceGone"
    }

    public object RemapAttaching : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "REMAP_ATTACHING"
        override fun toString(): kotlin.String = "RemapAttaching"
    }

    public object RemapDetaching : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "REMAP_DETACHING"
        override fun toString(): kotlin.String = "RemapDetaching"
    }

    public object UpdateFailed : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "UPDATE_FAILED"
        override fun toString(): kotlin.String = "UpdateFailed"
    }

    public object Updating : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        override val value: kotlin.String = "UPDATING"
        override fun toString(): kotlin.String = "Updating"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.route53resolver.model.IpAddressStatus() {
        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.route53resolver.model.IpAddressStatus = when (value) {
            "ATTACHED" -> Attached
            "ATTACHING" -> Attaching
            "CREATING" -> Creating
            "DELETE_FAILED_FAS_EXPIRED" -> DeleteFailedFasExpired
            "DELETING" -> Deleting
            "DETACHING" -> Detaching
            "FAILED_CREATION" -> FailedCreation
            "FAILED_RESOURCE_GONE" -> FailedResourceGone
            "REMAP_ATTACHING" -> RemapAttaching
            "REMAP_DETACHING" -> RemapDetaching
            "UPDATE_FAILED" -> UpdateFailed
            "UPDATING" -> Updating
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Attached,
            Attaching,
            Creating,
            DeleteFailedFasExpired,
            Deleting,
            Detaching,
            FailedCreation,
            FailedResourceGone,
            RemapAttaching,
            RemapDetaching,
            UpdateFailed,
            Updating,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy