commonMain.aws.sdk.kotlin.services.glue.model.Comparator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import kotlin.collections.List
public sealed class Comparator {
public abstract val value: kotlin.String
public object Equals : aws.sdk.kotlin.services.glue.model.Comparator() {
override val value: kotlin.String = "EQUALS"
override fun toString(): kotlin.String = "Equals"
}
public object GreaterThan : aws.sdk.kotlin.services.glue.model.Comparator() {
override val value: kotlin.String = "GREATER_THAN"
override fun toString(): kotlin.String = "GreaterThan"
}
public object GreaterThanEquals : aws.sdk.kotlin.services.glue.model.Comparator() {
override val value: kotlin.String = "GREATER_THAN_EQUALS"
override fun toString(): kotlin.String = "GreaterThanEquals"
}
public object LessThan : aws.sdk.kotlin.services.glue.model.Comparator() {
override val value: kotlin.String = "LESS_THAN"
override fun toString(): kotlin.String = "LessThan"
}
public object LessThanEquals : aws.sdk.kotlin.services.glue.model.Comparator() {
override val value: kotlin.String = "LESS_THAN_EQUALS"
override fun toString(): kotlin.String = "LessThanEquals"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.Comparator() {
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.glue.model.Comparator = when (value) {
"EQUALS" -> Equals
"GREATER_THAN" -> GreaterThan
"GREATER_THAN_EQUALS" -> GreaterThanEquals
"LESS_THAN" -> LessThan
"LESS_THAN_EQUALS" -> LessThanEquals
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Equals,
GreaterThan,
GreaterThanEquals,
LessThan,
LessThanEquals,
)
}
}