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

commonMain.aws.sdk.kotlin.services.waf.model.ComparisonOperator.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.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,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy