commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs-jvm Show documentation
Show all versions of cloudwatchlogs-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Logs
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
import kotlin.collections.List
public sealed class StandardUnit {
public abstract val value: kotlin.String
public object Bits : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Bits"
override fun toString(): kotlin.String = "Bits"
}
public object BitsSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Bits/Second"
override fun toString(): kotlin.String = "BitsSecond"
}
public object Bytes : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Bytes"
override fun toString(): kotlin.String = "Bytes"
}
public object BytesSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Bytes/Second"
override fun toString(): kotlin.String = "BytesSecond"
}
public object Count : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Count"
override fun toString(): kotlin.String = "Count"
}
public object CountSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Count/Second"
override fun toString(): kotlin.String = "CountSecond"
}
public object Gigabits : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Gigabits"
override fun toString(): kotlin.String = "Gigabits"
}
public object GigabitsSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Gigabits/Second"
override fun toString(): kotlin.String = "GigabitsSecond"
}
public object Gigabytes : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Gigabytes"
override fun toString(): kotlin.String = "Gigabytes"
}
public object GigabytesSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Gigabytes/Second"
override fun toString(): kotlin.String = "GigabytesSecond"
}
public object Kilobits : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Kilobits"
override fun toString(): kotlin.String = "Kilobits"
}
public object KilobitsSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Kilobits/Second"
override fun toString(): kotlin.String = "KilobitsSecond"
}
public object Kilobytes : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Kilobytes"
override fun toString(): kotlin.String = "Kilobytes"
}
public object KilobytesSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Kilobytes/Second"
override fun toString(): kotlin.String = "KilobytesSecond"
}
public object Megabits : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Megabits"
override fun toString(): kotlin.String = "Megabits"
}
public object MegabitsSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Megabits/Second"
override fun toString(): kotlin.String = "MegabitsSecond"
}
public object Megabytes : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Megabytes"
override fun toString(): kotlin.String = "Megabytes"
}
public object MegabytesSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Megabytes/Second"
override fun toString(): kotlin.String = "MegabytesSecond"
}
public object Microseconds : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Microseconds"
override fun toString(): kotlin.String = "Microseconds"
}
public object Milliseconds : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Milliseconds"
override fun toString(): kotlin.String = "Milliseconds"
}
public object None : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "None"
override fun toString(): kotlin.String = "None"
}
public object Percent : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Percent"
override fun toString(): kotlin.String = "Percent"
}
public object Seconds : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Seconds"
override fun toString(): kotlin.String = "Seconds"
}
public object Terabits : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Terabits"
override fun toString(): kotlin.String = "Terabits"
}
public object TerabitsSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Terabits/Second"
override fun toString(): kotlin.String = "TerabitsSecond"
}
public object Terabytes : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Terabytes"
override fun toString(): kotlin.String = "Terabytes"
}
public object TerabytesSecond : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
override val value: kotlin.String = "Terabytes/Second"
override fun toString(): kotlin.String = "TerabytesSecond"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.cloudwatchlogs.model.StandardUnit() {
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.cloudwatchlogs.model.StandardUnit = when (value) {
"Bits" -> Bits
"Bits/Second" -> BitsSecond
"Bytes" -> Bytes
"Bytes/Second" -> BytesSecond
"Count" -> Count
"Count/Second" -> CountSecond
"Gigabits" -> Gigabits
"Gigabits/Second" -> GigabitsSecond
"Gigabytes" -> Gigabytes
"Gigabytes/Second" -> GigabytesSecond
"Kilobits" -> Kilobits
"Kilobits/Second" -> KilobitsSecond
"Kilobytes" -> Kilobytes
"Kilobytes/Second" -> KilobytesSecond
"Megabits" -> Megabits
"Megabits/Second" -> MegabitsSecond
"Megabytes" -> Megabytes
"Megabytes/Second" -> MegabytesSecond
"Microseconds" -> Microseconds
"Milliseconds" -> Milliseconds
"None" -> None
"Percent" -> Percent
"Seconds" -> Seconds
"Terabits" -> Terabits
"Terabits/Second" -> TerabitsSecond
"Terabytes" -> Terabytes
"Terabytes/Second" -> TerabytesSecond
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,
BitsSecond,
Bytes,
BytesSecond,
Count,
CountSecond,
Gigabits,
GigabitsSecond,
Gigabytes,
GigabytesSecond,
Kilobits,
KilobitsSecond,
Kilobytes,
KilobytesSecond,
Megabits,
MegabitsSecond,
Megabytes,
MegabytesSecond,
Microseconds,
Milliseconds,
None,
Percent,
Seconds,
Terabits,
TerabitsSecond,
Terabytes,
TerabytesSecond,
)
}
}