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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The response to a `CreateSqlInjectionMatchSet` request.
 */
public class CreateSqlInjectionMatchSetResponse private constructor(builder: Builder) {
    /**
     * The `ChangeToken` that you used to submit the `CreateSqlInjectionMatchSet` request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.
     */
    public val changeToken: kotlin.String? = builder.changeToken
    /**
     * A SqlInjectionMatchSet.
     */
    public val sqlInjectionMatchSet: aws.sdk.kotlin.services.waf.model.SqlInjectionMatchSet? = builder.sqlInjectionMatchSet

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

    override fun toString(): kotlin.String = buildString {
        append("CreateSqlInjectionMatchSetResponse(")
        append("changeToken=$changeToken,")
        append("sqlInjectionMatchSet=$sqlInjectionMatchSet")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = changeToken?.hashCode() ?: 0
        result = 31 * result + (sqlInjectionMatchSet?.hashCode() ?: 0)
        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 CreateSqlInjectionMatchSetResponse

        if (changeToken != other.changeToken) return false
        if (sqlInjectionMatchSet != other.sqlInjectionMatchSet) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The `ChangeToken` that you used to submit the `CreateSqlInjectionMatchSet` request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.
         */
        public var changeToken: kotlin.String? = null
        /**
         * A SqlInjectionMatchSet.
         */
        public var sqlInjectionMatchSet: aws.sdk.kotlin.services.waf.model.SqlInjectionMatchSet? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.waf.model.CreateSqlInjectionMatchSetResponse) : this() {
            this.changeToken = x.changeToken
            this.sqlInjectionMatchSet = x.sqlInjectionMatchSet
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.waf.model.SqlInjectionMatchSet] inside the given [block]
         */
        public fun sqlInjectionMatchSet(block: aws.sdk.kotlin.services.waf.model.SqlInjectionMatchSet.Builder.() -> kotlin.Unit) {
            this.sqlInjectionMatchSet = aws.sdk.kotlin.services.waf.model.SqlInjectionMatchSet.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy