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

commonMain.aws.sdk.kotlin.services.finspacedata.model.ChangesetErrorInfo.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.finspacedata.model



/**
 * The structure with error messages.
 */
public class ChangesetErrorInfo private constructor(builder: Builder) {
    /**
     * The category of the error.
     * + `VALIDATION` – The inputs to this request are invalid.
     * + `SERVICE_QUOTA_EXCEEDED` – Service quotas have been exceeded. Please contact AWS support to increase quotas.
     * + `ACCESS_DENIED` – Missing required permission to perform this request.
     * + `RESOURCE_NOT_FOUND` – One or more inputs to this request were not found.
     * + `THROTTLING` – The system temporarily lacks sufficient resources to process the request.
     * + `INTERNAL_SERVICE_EXCEPTION` – An internal service error has occurred.
     * + `CANCELLED` – Cancelled.
     * + `USER_RECOVERABLE` – A user recoverable error has occurred.
     */
    public val errorCategory: aws.sdk.kotlin.services.finspacedata.model.ErrorCategory? = builder.errorCategory
    /**
     * The text of the error message.
     */
    public val errorMessage: kotlin.String? = builder.errorMessage

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

    override fun toString(): kotlin.String = buildString {
        append("ChangesetErrorInfo(")
        append("errorCategory=$errorCategory,")
        append("errorMessage=$errorMessage")
        append(")")
    }

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

        if (errorCategory != other.errorCategory) return false
        if (errorMessage != other.errorMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The category of the error.
         * + `VALIDATION` – The inputs to this request are invalid.
         * + `SERVICE_QUOTA_EXCEEDED` – Service quotas have been exceeded. Please contact AWS support to increase quotas.
         * + `ACCESS_DENIED` – Missing required permission to perform this request.
         * + `RESOURCE_NOT_FOUND` – One or more inputs to this request were not found.
         * + `THROTTLING` – The system temporarily lacks sufficient resources to process the request.
         * + `INTERNAL_SERVICE_EXCEPTION` – An internal service error has occurred.
         * + `CANCELLED` – Cancelled.
         * + `USER_RECOVERABLE` – A user recoverable error has occurred.
         */
        public var errorCategory: aws.sdk.kotlin.services.finspacedata.model.ErrorCategory? = null
        /**
         * The text of the error message.
         */
        public var errorMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.ChangesetErrorInfo) : this() {
            this.errorCategory = x.errorCategory
            this.errorMessage = x.errorMessage
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy