commonMain.aws.sdk.kotlin.services.wafv2.model.ActionValue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wafv2-jvm Show documentation
Show all versions of wafv2-jvm Show documentation
The AWS Kotlin client for WAFV2
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wafv2.model
import kotlin.collections.List
public sealed class ActionValue {
public abstract val value: kotlin.String
public object Allow : aws.sdk.kotlin.services.wafv2.model.ActionValue() {
override val value: kotlin.String = "ALLOW"
override fun toString(): kotlin.String = "Allow"
}
public object Block : aws.sdk.kotlin.services.wafv2.model.ActionValue() {
override val value: kotlin.String = "BLOCK"
override fun toString(): kotlin.String = "Block"
}
public object Captcha : aws.sdk.kotlin.services.wafv2.model.ActionValue() {
override val value: kotlin.String = "CAPTCHA"
override fun toString(): kotlin.String = "Captcha"
}
public object Challenge : aws.sdk.kotlin.services.wafv2.model.ActionValue() {
override val value: kotlin.String = "CHALLENGE"
override fun toString(): kotlin.String = "Challenge"
}
public object Count : aws.sdk.kotlin.services.wafv2.model.ActionValue() {
override val value: kotlin.String = "COUNT"
override fun toString(): kotlin.String = "Count"
}
public object ExcludedAsCount : aws.sdk.kotlin.services.wafv2.model.ActionValue() {
override val value: kotlin.String = "EXCLUDED_AS_COUNT"
override fun toString(): kotlin.String = "ExcludedAsCount"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.wafv2.model.ActionValue() {
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.wafv2.model.ActionValue = when (value) {
"ALLOW" -> Allow
"BLOCK" -> Block
"CAPTCHA" -> Captcha
"CHALLENGE" -> Challenge
"COUNT" -> Count
"EXCLUDED_AS_COUNT" -> ExcludedAsCount
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Allow,
Block,
Captcha,
Challenge,
Count,
ExcludedAsCount,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy