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