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

commonMain.aws.sdk.kotlin.services.waf.model.TextTransformation.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 TextTransformation {
    public abstract val value: kotlin.String

    public object CmdLine : aws.sdk.kotlin.services.waf.model.TextTransformation() {
        override val value: kotlin.String = "CMD_LINE"
        override fun toString(): kotlin.String = "CmdLine"
    }

    public object CompressWhiteSpace : aws.sdk.kotlin.services.waf.model.TextTransformation() {
        override val value: kotlin.String = "COMPRESS_WHITE_SPACE"
        override fun toString(): kotlin.String = "CompressWhiteSpace"
    }

    public object HtmlEntityDecode : aws.sdk.kotlin.services.waf.model.TextTransformation() {
        override val value: kotlin.String = "HTML_ENTITY_DECODE"
        override fun toString(): kotlin.String = "HtmlEntityDecode"
    }

    public object Lowercase : aws.sdk.kotlin.services.waf.model.TextTransformation() {
        override val value: kotlin.String = "LOWERCASE"
        override fun toString(): kotlin.String = "Lowercase"
    }

    public object None : aws.sdk.kotlin.services.waf.model.TextTransformation() {
        override val value: kotlin.String = "NONE"
        override fun toString(): kotlin.String = "None"
    }

    public object UrlDecode : aws.sdk.kotlin.services.waf.model.TextTransformation() {
        override val value: kotlin.String = "URL_DECODE"
        override fun toString(): kotlin.String = "UrlDecode"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.waf.model.TextTransformation() {
        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.TextTransformation = when (value) {
            "CMD_LINE" -> CmdLine
            "COMPRESS_WHITE_SPACE" -> CompressWhiteSpace
            "HTML_ENTITY_DECODE" -> HtmlEntityDecode
            "LOWERCASE" -> Lowercase
            "NONE" -> None
            "URL_DECODE" -> UrlDecode
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            CmdLine,
            CompressWhiteSpace,
            HtmlEntityDecode,
            Lowercase,
            None,
            UrlDecode,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy