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

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

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

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



/**
 * List of errors that occurred when the template version creation failed.
 */
class TemplateError private constructor(builder: Builder) {
    /**
     * Description of the error type.
     */
    val message: kotlin.String? = builder.message
    /**
     * Type of error.
     */
    val type: aws.sdk.kotlin.services.quicksight.model.TemplateErrorType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("TemplateError(")
        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 TemplateError

        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.TemplateError = Builder(this).apply(block).build()

    class Builder {
        /**
         * Description of the error type.
         */
        var message: kotlin.String? = null
        /**
         * Type of error.
         */
        var type: aws.sdk.kotlin.services.quicksight.model.TemplateErrorType? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy