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

commonMain.aws.sdk.kotlin.services.textract.model.GetLendingAnalysisResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.textract.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetLendingAnalysisResponse private constructor(builder: Builder) {
    /**
     * The current model version of the Analyze Lending API.
     */
    public val analyzeLendingModelVersion: kotlin.String? = builder.analyzeLendingModelVersion
    /**
     * Information about the input document.
     */
    public val documentMetadata: aws.sdk.kotlin.services.textract.model.DocumentMetadata? = builder.documentMetadata
    /**
     * The current status of the lending analysis job.
     */
    public val jobStatus: aws.sdk.kotlin.services.textract.model.JobStatus? = builder.jobStatus
    /**
     * If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent request to retrieve the next set of lending results.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * Holds the information returned by one of AmazonTextract's document analysis operations for the pinstripe.
     */
    public val results: List? = builder.results
    /**
     * Returns if the lending analysis job could not be completed. Contains explanation for what error occurred.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage
    /**
     * A list of warnings that occurred during the lending analysis operation.
     */
    public val warnings: List? = builder.warnings

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

    override fun toString(): kotlin.String = buildString {
        append("GetLendingAnalysisResponse(")
        append("analyzeLendingModelVersion=$analyzeLendingModelVersion,")
        append("documentMetadata=$documentMetadata,")
        append("jobStatus=$jobStatus,")
        append("nextToken=$nextToken,")
        append("results=$results,")
        append("statusMessage=$statusMessage,")
        append("warnings=$warnings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = analyzeLendingModelVersion?.hashCode() ?: 0
        result = 31 * result + (documentMetadata?.hashCode() ?: 0)
        result = 31 * result + (jobStatus?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (results?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.hashCode() ?: 0)
        result = 31 * result + (warnings?.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 GetLendingAnalysisResponse

        if (analyzeLendingModelVersion != other.analyzeLendingModelVersion) return false
        if (documentMetadata != other.documentMetadata) return false
        if (jobStatus != other.jobStatus) return false
        if (nextToken != other.nextToken) return false
        if (results != other.results) return false
        if (statusMessage != other.statusMessage) return false
        if (warnings != other.warnings) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The current model version of the Analyze Lending API.
         */
        public var analyzeLendingModelVersion: kotlin.String? = null
        /**
         * Information about the input document.
         */
        public var documentMetadata: aws.sdk.kotlin.services.textract.model.DocumentMetadata? = null
        /**
         * The current status of the lending analysis job.
         */
        public var jobStatus: aws.sdk.kotlin.services.textract.model.JobStatus? = null
        /**
         * If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent request to retrieve the next set of lending results.
         */
        public var nextToken: kotlin.String? = null
        /**
         * Holds the information returned by one of AmazonTextract's document analysis operations for the pinstripe.
         */
        public var results: List? = null
        /**
         * Returns if the lending analysis job could not be completed. Contains explanation for what error occurred.
         */
        public var statusMessage: kotlin.String? = null
        /**
         * A list of warnings that occurred during the lending analysis operation.
         */
        public var warnings: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.textract.model.GetLendingAnalysisResponse) : this() {
            this.analyzeLendingModelVersion = x.analyzeLendingModelVersion
            this.documentMetadata = x.documentMetadata
            this.jobStatus = x.jobStatus
            this.nextToken = x.nextToken
            this.results = x.results
            this.statusMessage = x.statusMessage
            this.warnings = x.warnings
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy