commonMain.aws.sdk.kotlin.services.wafv2.model.LabelMatchScope.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 LabelMatchScope {
public abstract val value: kotlin.String
public object Label : aws.sdk.kotlin.services.wafv2.model.LabelMatchScope() {
override val value: kotlin.String = "LABEL"
override fun toString(): kotlin.String = "Label"
}
public object Namespace : aws.sdk.kotlin.services.wafv2.model.LabelMatchScope() {
override val value: kotlin.String = "NAMESPACE"
override fun toString(): kotlin.String = "Namespace"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.wafv2.model.LabelMatchScope() {
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.LabelMatchScope = when (value) {
"LABEL" -> Label
"NAMESPACE" -> Namespace
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Label,
Namespace,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy