commonMain.aws.sdk.kotlin.services.waf.model.ComparisonOperator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waf-jvm Show documentation
Show all versions of waf-jvm Show documentation
The AWS SDK for Kotlin client for WAF
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.waf.model
import kotlin.collections.List
public sealed class ComparisonOperator {
public abstract val value: kotlin.String
public object Eq : aws.sdk.kotlin.services.waf.model.ComparisonOperator() {
override val value: kotlin.String = "EQ"
override fun toString(): kotlin.String = "Eq"
}
public object Ge : aws.sdk.kotlin.services.waf.model.ComparisonOperator() {
override val value: kotlin.String = "GE"
override fun toString(): kotlin.String = "Ge"
}
public object Gt : aws.sdk.kotlin.services.waf.model.ComparisonOperator() {
override val value: kotlin.String = "GT"
override fun toString(): kotlin.String = "Gt"
}
public object Le : aws.sdk.kotlin.services.waf.model.ComparisonOperator() {
override val value: kotlin.String = "LE"
override fun toString(): kotlin.String = "Le"
}
public object Lt : aws.sdk.kotlin.services.waf.model.ComparisonOperator() {
override val value: kotlin.String = "LT"
override fun toString(): kotlin.String = "Lt"
}
public object Ne : aws.sdk.kotlin.services.waf.model.ComparisonOperator() {
override val value: kotlin.String = "NE"
override fun toString(): kotlin.String = "Ne"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.waf.model.ComparisonOperator() {
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.waf.model.ComparisonOperator = when (value) {
"EQ" -> Eq
"GE" -> Ge
"GT" -> Gt
"LE" -> Le
"LT" -> Lt
"NE" -> Ne
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Eq,
Ge,
Gt,
Le,
Lt,
Ne,
)
}
}