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

commonMain.aws.sdk.kotlin.services.shield.model.AttackVectorDescription.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 aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes the attack.
 */
public class AttackVectorDescription private constructor(builder: Builder) {
    /**
     * The attack type. Valid values:
     * + UDP_TRAFFIC
     * + UDP_FRAGMENT
     * + GENERIC_UDP_REFLECTION
     * + DNS_REFLECTION
     * + NTP_REFLECTION
     * + CHARGEN_REFLECTION
     * + SSDP_REFLECTION
     * + PORT_MAPPER
     * + RIP_REFLECTION
     * + SNMP_REFLECTION
     * + MSSQL_REFLECTION
     * + NET_BIOS_REFLECTION
     * + SYN_FLOOD
     * + ACK_FLOOD
     * + REQUEST_FLOOD
     * + HTTP_REFLECTION
     * + UDS_REFLECTION
     * + MEMCACHED_REFLECTION
     */
    public val vectorType: kotlin.String = requireNotNull(builder.vectorType) { "A non-null value must be provided for vectorType" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.shield.model.AttackVectorDescription = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AttackVectorDescription(")
        append("vectorType=$vectorType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = vectorType.hashCode()
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as AttackVectorDescription

        if (vectorType != other.vectorType) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.shield.model.AttackVectorDescription = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The attack type. Valid values:
         * + UDP_TRAFFIC
         * + UDP_FRAGMENT
         * + GENERIC_UDP_REFLECTION
         * + DNS_REFLECTION
         * + NTP_REFLECTION
         * + CHARGEN_REFLECTION
         * + SSDP_REFLECTION
         * + PORT_MAPPER
         * + RIP_REFLECTION
         * + SNMP_REFLECTION
         * + MSSQL_REFLECTION
         * + NET_BIOS_REFLECTION
         * + SYN_FLOOD
         * + ACK_FLOOD
         * + REQUEST_FLOOD
         * + HTTP_REFLECTION
         * + UDS_REFLECTION
         * + MEMCACHED_REFLECTION
         */
        public var vectorType: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.shield.model.AttackVectorDescription) : this() {
            this.vectorType = x.vectorType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.shield.model.AttackVectorDescription = AttackVectorDescription(this)

        internal fun correctErrors(): Builder {
            if (vectorType == null) vectorType = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy