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

commonMain.aws.sdk.kotlin.services.codepipeline.model.Result.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codepipeline.model

import kotlin.collections.List

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

    public object Fail : aws.sdk.kotlin.services.codepipeline.model.Result() {
        override val value: kotlin.String = "FAIL"
        override fun toString(): kotlin.String = "Fail"
    }

    public object Retry : aws.sdk.kotlin.services.codepipeline.model.Result() {
        override val value: kotlin.String = "RETRY"
        override fun toString(): kotlin.String = "Retry"
    }

    public object Rollback : aws.sdk.kotlin.services.codepipeline.model.Result() {
        override val value: kotlin.String = "ROLLBACK"
        override fun toString(): kotlin.String = "Rollback"
    }

    public object Skip : aws.sdk.kotlin.services.codepipeline.model.Result() {
        override val value: kotlin.String = "SKIP"
        override fun toString(): kotlin.String = "Skip"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.codepipeline.model.Result() {
        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.codepipeline.model.Result = when (value) {
            "FAIL" -> Fail
            "RETRY" -> Retry
            "ROLLBACK" -> Rollback
            "SKIP" -> Skip
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Fail,
            Retry,
            Rollback,
            Skip,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy