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

commonMain.aws.sdk.kotlin.services.quicksight.model.AnalysisError.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.quicksight.model



/**
 * Analysis error.
 */
class AnalysisError private constructor(builder: Builder) {
    /**
     * The message associated with the analysis error.
     */
    val message: kotlin.String? = builder.message
    /**
     * The type of the analysis error.
     */
    val type: aws.sdk.kotlin.services.quicksight.model.AnalysisErrorType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("AnalysisError(")
        append("message=$message,")
        append("type=$type)")
    }

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

        if (message != other.message) return false
        if (type != other.type) return false

        return true
    }

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

    class Builder {
        /**
         * The message associated with the analysis error.
         */
        var message: kotlin.String? = null
        /**
         * The type of the analysis error.
         */
        var type: aws.sdk.kotlin.services.quicksight.model.AnalysisErrorType? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.AnalysisError) : this() {
            this.message = x.message
            this.type = x.type
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.quicksight.model.AnalysisError = AnalysisError(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy