commonMain.aws.sdk.kotlin.services.mwaa.model.MwaaUnit.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mwaa-jvm Show documentation
Show all versions of mwaa-jvm Show documentation
The AWS SDK for Kotlin client for MWAA
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mwaa.model
import kotlin.collections.List
public sealed class MwaaUnit {
public abstract val value: kotlin.String
public object Bits : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Bits"
override fun toString(): kotlin.String = "Bits"
}
public object BitsPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Bits/Second"
override fun toString(): kotlin.String = "BitsPerSecond"
}
public object Bytes : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Bytes"
override fun toString(): kotlin.String = "Bytes"
}
public object BytesPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Bytes/Second"
override fun toString(): kotlin.String = "BytesPerSecond"
}
public object Count : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Count"
override fun toString(): kotlin.String = "Count"
}
public object CountPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Count/Second"
override fun toString(): kotlin.String = "CountPerSecond"
}
public object Gigabits : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Gigabits"
override fun toString(): kotlin.String = "Gigabits"
}
public object GigabitsPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Gigabits/Second"
override fun toString(): kotlin.String = "GigabitsPerSecond"
}
public object Gigabytes : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Gigabytes"
override fun toString(): kotlin.String = "Gigabytes"
}
public object GigabytesPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Gigabytes/Second"
override fun toString(): kotlin.String = "GigabytesPerSecond"
}
public object Kilobits : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Kilobits"
override fun toString(): kotlin.String = "Kilobits"
}
public object KilobitsPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Kilobits/Second"
override fun toString(): kotlin.String = "KilobitsPerSecond"
}
public object Kilobytes : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Kilobytes"
override fun toString(): kotlin.String = "Kilobytes"
}
public object KilobytesPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Kilobytes/Second"
override fun toString(): kotlin.String = "KilobytesPerSecond"
}
public object Megabits : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Megabits"
override fun toString(): kotlin.String = "Megabits"
}
public object MegabitsPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Megabits/Second"
override fun toString(): kotlin.String = "MegabitsPerSecond"
}
public object Megabytes : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Megabytes"
override fun toString(): kotlin.String = "Megabytes"
}
public object MegabytesPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Megabytes/Second"
override fun toString(): kotlin.String = "MegabytesPerSecond"
}
public object Microseconds : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Microseconds"
override fun toString(): kotlin.String = "Microseconds"
}
public object Milliseconds : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Milliseconds"
override fun toString(): kotlin.String = "Milliseconds"
}
public object None : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "None"
override fun toString(): kotlin.String = "None"
}
public object Percent : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Percent"
override fun toString(): kotlin.String = "Percent"
}
public object Seconds : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Seconds"
override fun toString(): kotlin.String = "Seconds"
}
public object Terabits : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Terabits"
override fun toString(): kotlin.String = "Terabits"
}
public object TerabitsPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Terabits/Second"
override fun toString(): kotlin.String = "TerabitsPerSecond"
}
public object Terabytes : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Terabytes"
override fun toString(): kotlin.String = "Terabytes"
}
public object TerabytesPerSecond : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
override val value: kotlin.String = "Terabytes/Second"
override fun toString(): kotlin.String = "TerabytesPerSecond"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mwaa.model.MwaaUnit() {
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.mwaa.model.MwaaUnit = when (value) {
"Bits" -> Bits
"Bits/Second" -> BitsPerSecond
"Bytes" -> Bytes
"Bytes/Second" -> BytesPerSecond
"Count" -> Count
"Count/Second" -> CountPerSecond
"Gigabits" -> Gigabits
"Gigabits/Second" -> GigabitsPerSecond
"Gigabytes" -> Gigabytes
"Gigabytes/Second" -> GigabytesPerSecond
"Kilobits" -> Kilobits
"Kilobits/Second" -> KilobitsPerSecond
"Kilobytes" -> Kilobytes
"Kilobytes/Second" -> KilobytesPerSecond
"Megabits" -> Megabits
"Megabits/Second" -> MegabitsPerSecond
"Megabytes" -> Megabytes
"Megabytes/Second" -> MegabytesPerSecond
"Microseconds" -> Microseconds
"Milliseconds" -> Milliseconds
"None" -> None
"Percent" -> Percent
"Seconds" -> Seconds
"Terabits" -> Terabits
"Terabits/Second" -> TerabitsPerSecond
"Terabytes" -> Terabytes
"Terabytes/Second" -> TerabytesPerSecond
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Bits,
BitsPerSecond,
Bytes,
BytesPerSecond,
Count,
CountPerSecond,
Gigabits,
GigabitsPerSecond,
Gigabytes,
GigabytesPerSecond,
Kilobits,
KilobitsPerSecond,
Kilobytes,
KilobytesPerSecond,
Megabits,
MegabitsPerSecond,
Megabytes,
MegabytesPerSecond,
Microseconds,
Milliseconds,
None,
Percent,
Seconds,
Terabits,
TerabitsPerSecond,
Terabytes,
TerabytesPerSecond,
)
}
}