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

commonMain.aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier.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.shield.model

import kotlin.collections.List

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

    public object DestinationUrl : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        override val value: kotlin.String = "DESTINATION_URL"
        override fun toString(): kotlin.String = "DestinationUrl"
    }

    public object Referrer : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        override val value: kotlin.String = "REFERRER"
        override fun toString(): kotlin.String = "Referrer"
    }

    public object SourceAsn : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        override val value: kotlin.String = "SOURCE_ASN"
        override fun toString(): kotlin.String = "SourceAsn"
    }

    public object SourceCountry : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        override val value: kotlin.String = "SOURCE_COUNTRY"
        override fun toString(): kotlin.String = "SourceCountry"
    }

    public object SourceIpAddress : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        override val value: kotlin.String = "SOURCE_IP_ADDRESS"
        override fun toString(): kotlin.String = "SourceIpAddress"
    }

    public object SourceUserAgent : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        override val value: kotlin.String = "SOURCE_USER_AGENT"
        override fun toString(): kotlin.String = "SourceUserAgent"
    }

    public object WordpressPingbackReflector : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        override val value: kotlin.String = "WORDPRESS_PINGBACK_REFLECTOR"
        override fun toString(): kotlin.String = "WordpressPingbackReflector"
    }

    public object WordpressPingbackSource : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        override val value: kotlin.String = "WORDPRESS_PINGBACK_SOURCE"
        override fun toString(): kotlin.String = "WordpressPingbackSource"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.shield.model.AttackPropertyIdentifier() {
        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.shield.model.AttackPropertyIdentifier = when (value) {
            "DESTINATION_URL" -> DestinationUrl
            "REFERRER" -> Referrer
            "SOURCE_ASN" -> SourceAsn
            "SOURCE_COUNTRY" -> SourceCountry
            "SOURCE_IP_ADDRESS" -> SourceIpAddress
            "SOURCE_USER_AGENT" -> SourceUserAgent
            "WORDPRESS_PINGBACK_REFLECTOR" -> WordpressPingbackReflector
            "WORDPRESS_PINGBACK_SOURCE" -> WordpressPingbackSource
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            DestinationUrl,
            Referrer,
            SourceAsn,
            SourceCountry,
            SourceIpAddress,
            SourceUserAgent,
            WordpressPingbackReflector,
            WordpressPingbackSource,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy