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

commonMain.aws.sdk.kotlin.services.datasync.model.ReportLevel.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datasync.model

import kotlin.collections.List

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

    public object ErrorsOnly : aws.sdk.kotlin.services.datasync.model.ReportLevel() {
        override val value: kotlin.String = "ERRORS_ONLY"
        override fun toString(): kotlin.String = "ErrorsOnly"
    }

    public object SuccessesAndErrors : aws.sdk.kotlin.services.datasync.model.ReportLevel() {
        override val value: kotlin.String = "SUCCESSES_AND_ERRORS"
        override fun toString(): kotlin.String = "SuccessesAndErrors"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.datasync.model.ReportLevel() {
        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.datasync.model.ReportLevel = when (value) {
            "ERRORS_ONLY" -> ErrorsOnly
            "SUCCESSES_AND_ERRORS" -> SuccessesAndErrors
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            ErrorsOnly,
            SuccessesAndErrors,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy