commonMain.aws.sdk.kotlin.services.datasync.model.Operator.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datasync.model
import kotlin.collections.List
public sealed class Operator {
public abstract val value: kotlin.String
public object BeginsWith : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "BeginsWith"
override fun toString(): kotlin.String = "BeginsWith"
}
public object Contains : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "Contains"
override fun toString(): kotlin.String = "Contains"
}
public object Eq : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "Equals"
override fun toString(): kotlin.String = "Eq"
}
public object Ge : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "GreaterThanOrEqual"
override fun toString(): kotlin.String = "Ge"
}
public object Gt : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "GreaterThan"
override fun toString(): kotlin.String = "Gt"
}
public object In : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "In"
override fun toString(): kotlin.String = "In"
}
public object Le : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "LessThanOrEqual"
override fun toString(): kotlin.String = "Le"
}
public object Lt : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "LessThan"
override fun toString(): kotlin.String = "Lt"
}
public object Ne : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "NotEquals"
override fun toString(): kotlin.String = "Ne"
}
public object NotContains : aws.sdk.kotlin.services.datasync.model.Operator() {
override val value: kotlin.String = "NotContains"
override fun toString(): kotlin.String = "NotContains"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.datasync.model.Operator() {
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.datasync.model.Operator = when (value) {
"BeginsWith" -> BeginsWith
"Contains" -> Contains
"Equals" -> Eq
"GreaterThanOrEqual" -> Ge
"GreaterThan" -> Gt
"In" -> In
"LessThanOrEqual" -> Le
"LessThan" -> Lt
"NotEquals" -> Ne
"NotContains" -> NotContains
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
BeginsWith,
Contains,
Eq,
Ge,
Gt,
In,
Le,
Lt,
Ne,
NotContains,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy