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

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

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

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

import kotlin.collections.List

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

    public object Automatic : aws.sdk.kotlin.services.datasync.model.NfsVersion() {
        override val value: kotlin.String = "AUTOMATIC"
        override fun toString(): kotlin.String = "Automatic"
    }

    public object Nfs3 : aws.sdk.kotlin.services.datasync.model.NfsVersion() {
        override val value: kotlin.String = "NFS3"
        override fun toString(): kotlin.String = "Nfs3"
    }

    public object Nfs4_0 : aws.sdk.kotlin.services.datasync.model.NfsVersion() {
        override val value: kotlin.String = "NFS4_0"
        override fun toString(): kotlin.String = "Nfs4_0"
    }

    public object Nfs4_1 : aws.sdk.kotlin.services.datasync.model.NfsVersion() {
        override val value: kotlin.String = "NFS4_1"
        override fun toString(): kotlin.String = "Nfs4_1"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.datasync.model.NfsVersion() {
        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.NfsVersion = when (value) {
            "AUTOMATIC" -> Automatic
            "NFS3" -> Nfs3
            "NFS4_0" -> Nfs4_0
            "NFS4_1" -> Nfs4_1
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Automatic,
            Nfs3,
            Nfs4_0,
            Nfs4_1,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy