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

commonMain.aws.sdk.kotlin.services.servicequotas.model.RequestStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.servicequotas.model

import kotlin.collections.List

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

    public object Approved : aws.sdk.kotlin.services.servicequotas.model.RequestStatus() {
        override val value: kotlin.String = "APPROVED"
        override fun toString(): kotlin.String = "Approved"
    }

    public object CaseClosed : aws.sdk.kotlin.services.servicequotas.model.RequestStatus() {
        override val value: kotlin.String = "CASE_CLOSED"
        override fun toString(): kotlin.String = "CaseClosed"
    }

    public object CaseOpened : aws.sdk.kotlin.services.servicequotas.model.RequestStatus() {
        override val value: kotlin.String = "CASE_OPENED"
        override fun toString(): kotlin.String = "CaseOpened"
    }

    public object Denied : aws.sdk.kotlin.services.servicequotas.model.RequestStatus() {
        override val value: kotlin.String = "DENIED"
        override fun toString(): kotlin.String = "Denied"
    }

    public object InvalidRequest : aws.sdk.kotlin.services.servicequotas.model.RequestStatus() {
        override val value: kotlin.String = "INVALID_REQUEST"
        override fun toString(): kotlin.String = "InvalidRequest"
    }

    public object NotApproved : aws.sdk.kotlin.services.servicequotas.model.RequestStatus() {
        override val value: kotlin.String = "NOT_APPROVED"
        override fun toString(): kotlin.String = "NotApproved"
    }

    public object Pending : aws.sdk.kotlin.services.servicequotas.model.RequestStatus() {
        override val value: kotlin.String = "PENDING"
        override fun toString(): kotlin.String = "Pending"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.servicequotas.model.RequestStatus() {
        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.servicequotas.model.RequestStatus = when (value) {
            "APPROVED" -> Approved
            "CASE_CLOSED" -> CaseClosed
            "CASE_OPENED" -> CaseOpened
            "DENIED" -> Denied
            "INVALID_REQUEST" -> InvalidRequest
            "NOT_APPROVED" -> NotApproved
            "PENDING" -> Pending
            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,
            CaseClosed,
            CaseOpened,
            Denied,
            InvalidRequest,
            NotApproved,
            Pending,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy