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

commonMain.aws.sdk.kotlin.services.apprunner.model.VpcIngressConnectionStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.apprunner.model

import kotlin.collections.List

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

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

    public object Deleted : aws.sdk.kotlin.services.apprunner.model.VpcIngressConnectionStatus() {
        override val value: kotlin.String = "DELETED"
        override fun toString(): kotlin.String = "Deleted"
    }

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

    public object FailedDeletion : aws.sdk.kotlin.services.apprunner.model.VpcIngressConnectionStatus() {
        override val value: kotlin.String = "FAILED_DELETION"
        override fun toString(): kotlin.String = "FailedDeletion"
    }

    public object FailedUpdate : aws.sdk.kotlin.services.apprunner.model.VpcIngressConnectionStatus() {
        override val value: kotlin.String = "FAILED_UPDATE"
        override fun toString(): kotlin.String = "FailedUpdate"
    }

    public object PendingCreation : aws.sdk.kotlin.services.apprunner.model.VpcIngressConnectionStatus() {
        override val value: kotlin.String = "PENDING_CREATION"
        override fun toString(): kotlin.String = "PendingCreation"
    }

    public object PendingDeletion : aws.sdk.kotlin.services.apprunner.model.VpcIngressConnectionStatus() {
        override val value: kotlin.String = "PENDING_DELETION"
        override fun toString(): kotlin.String = "PendingDeletion"
    }

    public object PendingUpdate : aws.sdk.kotlin.services.apprunner.model.VpcIngressConnectionStatus() {
        override val value: kotlin.String = "PENDING_UPDATE"
        override fun toString(): kotlin.String = "PendingUpdate"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.apprunner.model.VpcIngressConnectionStatus() {
        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.apprunner.model.VpcIngressConnectionStatus = when (value) {
            "AVAILABLE" -> Available
            "DELETED" -> Deleted
            "FAILED_CREATION" -> FailedCreation
            "FAILED_DELETION" -> FailedDeletion
            "FAILED_UPDATE" -> FailedUpdate
            "PENDING_CREATION" -> PendingCreation
            "PENDING_DELETION" -> PendingDeletion
            "PENDING_UPDATE" -> PendingUpdate
            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,
            Deleted,
            FailedCreation,
            FailedDeletion,
            FailedUpdate,
            PendingCreation,
            PendingDeletion,
            PendingUpdate,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy