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

commonMain.aws.sdk.kotlin.services.deadline.model.ComparisonOperator.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.deadline.model

import kotlin.collections.List

public sealed class ComparisonOperator {
    public abstract val value: kotlin.String

    public object Equal : aws.sdk.kotlin.services.deadline.model.ComparisonOperator() {
        override val value: kotlin.String = "EQUAL"
        override fun toString(): kotlin.String = "Equal"
    }

    public object GreaterThan : aws.sdk.kotlin.services.deadline.model.ComparisonOperator() {
        override val value: kotlin.String = "GREATER_THAN"
        override fun toString(): kotlin.String = "GreaterThan"
    }

    public object GreaterThanEqualTo : aws.sdk.kotlin.services.deadline.model.ComparisonOperator() {
        override val value: kotlin.String = "GREATER_THAN_EQUAL_TO"
        override fun toString(): kotlin.String = "GreaterThanEqualTo"
    }

    public object LessThan : aws.sdk.kotlin.services.deadline.model.ComparisonOperator() {
        override val value: kotlin.String = "LESS_THAN"
        override fun toString(): kotlin.String = "LessThan"
    }

    public object LessThanEqualTo : aws.sdk.kotlin.services.deadline.model.ComparisonOperator() {
        override val value: kotlin.String = "LESS_THAN_EQUAL_TO"
        override fun toString(): kotlin.String = "LessThanEqualTo"
    }

    public object NotEqual : aws.sdk.kotlin.services.deadline.model.ComparisonOperator() {
        override val value: kotlin.String = "NOT_EQUAL"
        override fun toString(): kotlin.String = "NotEqual"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.deadline.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.deadline.model.ComparisonOperator = when (value) {
            "EQUAL" -> Equal
            "GREATER_THAN" -> GreaterThan
            "GREATER_THAN_EQUAL_TO" -> GreaterThanEqualTo
            "LESS_THAN" -> LessThan
            "LESS_THAN_EQUAL_TO" -> LessThanEqualTo
            "NOT_EQUAL" -> NotEqual
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            Equal,
            GreaterThan,
            GreaterThanEqualTo,
            LessThan,
            LessThanEqualTo,
            NotEqual,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy