commonMain.aws.sdk.kotlin.services.waf.model.TextTransformation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waf-jvm Show documentation
Show all versions of waf-jvm Show documentation
The AWS SDK for Kotlin client for WAF
// 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,
)
}
}