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

commonMain.aws.sdk.kotlin.services.athena.model.UnprocessedNamedQueryId.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.athena.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about a named query ID that could not be processed.
 */
public class UnprocessedNamedQueryId private constructor(builder: Builder) {
    /**
     * The error code returned when the processing request for the named query failed, if applicable.
     */
    public val errorCode: kotlin.String? = builder.errorCode
    /**
     * The error message returned when the processing request for the named query failed, if applicable.
     */
    public val errorMessage: kotlin.String? = builder.errorMessage
    /**
     * The unique identifier of the named query.
     */
    public val namedQueryId: kotlin.String? = builder.namedQueryId

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

    override fun toString(): kotlin.String = buildString {
        append("UnprocessedNamedQueryId(")
        append("errorCode=$errorCode,")
        append("errorMessage=$errorMessage,")
        append("namedQueryId=$namedQueryId")
        append(")")
    }

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

        if (errorCode != other.errorCode) return false
        if (errorMessage != other.errorMessage) return false
        if (namedQueryId != other.namedQueryId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The error code returned when the processing request for the named query failed, if applicable.
         */
        public var errorCode: kotlin.String? = null
        /**
         * The error message returned when the processing request for the named query failed, if applicable.
         */
        public var errorMessage: kotlin.String? = null
        /**
         * The unique identifier of the named query.
         */
        public var namedQueryId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.athena.model.UnprocessedNamedQueryId) : this() {
            this.errorCode = x.errorCode
            this.errorMessage = x.errorMessage
            this.namedQueryId = x.namedQueryId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy