All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.devicefarm.model.RuleOperator.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// 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,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy