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

commonMain.aws.sdk.kotlin.services.snowball.model.JobState.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.snowball.model

import kotlin.collections.List

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

    public object Cancelled : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "Cancelled"
        override fun toString(): kotlin.String = "Cancelled"
    }

    public object Complete : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "Complete"
        override fun toString(): kotlin.String = "Complete"
    }

    public object InProgress : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "InProgress"
        override fun toString(): kotlin.String = "InProgress"
    }

    public object InTransitToAws : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "InTransitToAWS"
        override fun toString(): kotlin.String = "InTransitToAws"
    }

    public object InTransitToCustomer : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "InTransitToCustomer"
        override fun toString(): kotlin.String = "InTransitToCustomer"
    }

    public object Listing : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "Listing"
        override fun toString(): kotlin.String = "Listing"
    }

    public object New : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "New"
        override fun toString(): kotlin.String = "New"
    }

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

    public object PreparingAppliance : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "PreparingAppliance"
        override fun toString(): kotlin.String = "PreparingAppliance"
    }

    public object PreparingShipment : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "PreparingShipment"
        override fun toString(): kotlin.String = "PreparingShipment"
    }

    public object WithAws : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "WithAWS"
        override fun toString(): kotlin.String = "WithAws"
    }

    public object WithAwsSortingFacility : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "WithAWSSortingFacility"
        override fun toString(): kotlin.String = "WithAwsSortingFacility"
    }

    public object WithCustomer : aws.sdk.kotlin.services.snowball.model.JobState() {
        override val value: kotlin.String = "WithCustomer"
        override fun toString(): kotlin.String = "WithCustomer"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.snowball.model.JobState() {
        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.snowball.model.JobState = when (value) {
            "Cancelled" -> Cancelled
            "Complete" -> Complete
            "InProgress" -> InProgress
            "InTransitToAWS" -> InTransitToAws
            "InTransitToCustomer" -> InTransitToCustomer
            "Listing" -> Listing
            "New" -> New
            "Pending" -> Pending
            "PreparingAppliance" -> PreparingAppliance
            "PreparingShipment" -> PreparingShipment
            "WithAWS" -> WithAws
            "WithAWSSortingFacility" -> WithAwsSortingFacility
            "WithCustomer" -> WithCustomer
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Cancelled,
            Complete,
            InProgress,
            InTransitToAws,
            InTransitToCustomer,
            Listing,
            New,
            Pending,
            PreparingAppliance,
            PreparingShipment,
            WithAws,
            WithAwsSortingFacility,
            WithCustomer,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy