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

commonMain.aws.sdk.kotlin.services.waf.model.ParameterExceptionField.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.waf.model

import kotlin.collections.List

public sealed class ParameterExceptionField {
    public abstract val value: kotlin.String

    public object ByteMatchFieldType : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "BYTE_MATCH_FIELD_TYPE"
        override fun toString(): kotlin.String = "ByteMatchFieldType"
    }

    public object ByteMatchPositionalConstraint : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "BYTE_MATCH_POSITIONAL_CONSTRAINT"
        override fun toString(): kotlin.String = "ByteMatchPositionalConstraint"
    }

    public object ByteMatchTextTransformation : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "BYTE_MATCH_TEXT_TRANSFORMATION"
        override fun toString(): kotlin.String = "ByteMatchTextTransformation"
    }

    public object ChangeAction : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "CHANGE_ACTION"
        override fun toString(): kotlin.String = "ChangeAction"
    }

    public object GeoMatchLocationType : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "GEO_MATCH_LOCATION_TYPE"
        override fun toString(): kotlin.String = "GeoMatchLocationType"
    }

    public object GeoMatchLocationValue : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "GEO_MATCH_LOCATION_VALUE"
        override fun toString(): kotlin.String = "GeoMatchLocationValue"
    }

    public object IpsetType : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "IPSET_TYPE"
        override fun toString(): kotlin.String = "IpsetType"
    }

    public object NextMarker : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "NEXT_MARKER"
        override fun toString(): kotlin.String = "NextMarker"
    }

    public object PredicateType : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "PREDICATE_TYPE"
        override fun toString(): kotlin.String = "PredicateType"
    }

    public object RateKey : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "RATE_KEY"
        override fun toString(): kotlin.String = "RateKey"
    }

    public object ResourceArn : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "RESOURCE_ARN"
        override fun toString(): kotlin.String = "ResourceArn"
    }

    public object RuleType : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "RULE_TYPE"
        override fun toString(): kotlin.String = "RuleType"
    }

    public object SizeConstraintComparisonOperator : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "SIZE_CONSTRAINT_COMPARISON_OPERATOR"
        override fun toString(): kotlin.String = "SizeConstraintComparisonOperator"
    }

    public object SqlInjectionMatchFieldType : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "SQL_INJECTION_MATCH_FIELD_TYPE"
        override fun toString(): kotlin.String = "SqlInjectionMatchFieldType"
    }

    public object Tags : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "TAGS"
        override fun toString(): kotlin.String = "Tags"
    }

    public object TagKeys : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "TAG_KEYS"
        override fun toString(): kotlin.String = "TagKeys"
    }

    public object WafAction : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "WAF_ACTION"
        override fun toString(): kotlin.String = "WafAction"
    }

    public object WafOverrideAction : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        override val value: kotlin.String = "WAF_OVERRIDE_ACTION"
        override fun toString(): kotlin.String = "WafOverrideAction"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.waf.model.ParameterExceptionField() {
        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.ParameterExceptionField = when (value) {
            "BYTE_MATCH_FIELD_TYPE" -> ByteMatchFieldType
            "BYTE_MATCH_POSITIONAL_CONSTRAINT" -> ByteMatchPositionalConstraint
            "BYTE_MATCH_TEXT_TRANSFORMATION" -> ByteMatchTextTransformation
            "CHANGE_ACTION" -> ChangeAction
            "GEO_MATCH_LOCATION_TYPE" -> GeoMatchLocationType
            "GEO_MATCH_LOCATION_VALUE" -> GeoMatchLocationValue
            "IPSET_TYPE" -> IpsetType
            "NEXT_MARKER" -> NextMarker
            "PREDICATE_TYPE" -> PredicateType
            "RATE_KEY" -> RateKey
            "RESOURCE_ARN" -> ResourceArn
            "RULE_TYPE" -> RuleType
            "SIZE_CONSTRAINT_COMPARISON_OPERATOR" -> SizeConstraintComparisonOperator
            "SQL_INJECTION_MATCH_FIELD_TYPE" -> SqlInjectionMatchFieldType
            "TAGS" -> Tags
            "TAG_KEYS" -> TagKeys
            "WAF_ACTION" -> WafAction
            "WAF_OVERRIDE_ACTION" -> WafOverrideAction
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            ByteMatchFieldType,
            ByteMatchPositionalConstraint,
            ByteMatchTextTransformation,
            ChangeAction,
            GeoMatchLocationType,
            GeoMatchLocationValue,
            IpsetType,
            NextMarker,
            PredicateType,
            RateKey,
            ResourceArn,
            RuleType,
            SizeConstraintComparisonOperator,
            SqlInjectionMatchFieldType,
            Tags,
            TagKeys,
            WafAction,
            WafOverrideAction,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy