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

commonMain.aws.sdk.kotlin.services.outposts.model.UplinkGbps.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.outposts.model

import kotlin.collections.List

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

    public object Uplink100G : aws.sdk.kotlin.services.outposts.model.UplinkGbps() {
        override val value: kotlin.String = "UPLINK_100G"
        override fun toString(): kotlin.String = "Uplink100G"
    }

    public object Uplink10G : aws.sdk.kotlin.services.outposts.model.UplinkGbps() {
        override val value: kotlin.String = "UPLINK_10G"
        override fun toString(): kotlin.String = "Uplink10G"
    }

    public object Uplink1G : aws.sdk.kotlin.services.outposts.model.UplinkGbps() {
        override val value: kotlin.String = "UPLINK_1G"
        override fun toString(): kotlin.String = "Uplink1G"
    }

    public object Uplink40G : aws.sdk.kotlin.services.outposts.model.UplinkGbps() {
        override val value: kotlin.String = "UPLINK_40G"
        override fun toString(): kotlin.String = "Uplink40G"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.outposts.model.UplinkGbps() {
        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.outposts.model.UplinkGbps = when (value) {
            "UPLINK_100G" -> Uplink100G
            "UPLINK_10G" -> Uplink10G
            "UPLINK_1G" -> Uplink1G
            "UPLINK_40G" -> Uplink40G
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Uplink100G,
            Uplink10G,
            Uplink1G,
            Uplink40G,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy