commonMain.aws.sdk.kotlin.services.textract.model.GetLendingAnalysisSummaryResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of textract-jvm Show documentation
Show all versions of textract-jvm Show documentation
The AWS SDK for Kotlin client for Textract
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.textract.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetLendingAnalysisSummaryResponse 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
/**
* Returns if the lending analysis could not be completed. Contains explanation for what error occurred.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* Contains summary information for documents grouped by type.
*/
public val summary: aws.sdk.kotlin.services.textract.model.LendingSummary? = builder.summary
/**
* 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.GetLendingAnalysisSummaryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLendingAnalysisSummaryResponse(")
append("analyzeLendingModelVersion=$analyzeLendingModelVersion,")
append("documentMetadata=$documentMetadata,")
append("jobStatus=$jobStatus,")
append("statusMessage=$statusMessage,")
append("summary=$summary,")
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 + (statusMessage?.hashCode() ?: 0)
result = 31 * result + (summary?.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 GetLendingAnalysisSummaryResponse
if (analyzeLendingModelVersion != other.analyzeLendingModelVersion) return false
if (documentMetadata != other.documentMetadata) return false
if (jobStatus != other.jobStatus) return false
if (statusMessage != other.statusMessage) return false
if (summary != other.summary) return false
if (warnings != other.warnings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.GetLendingAnalysisSummaryResponse = 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
/**
* Returns if the lending analysis could not be completed. Contains explanation for what error occurred.
*/
public var statusMessage: kotlin.String? = null
/**
* Contains summary information for documents grouped by type.
*/
public var summary: aws.sdk.kotlin.services.textract.model.LendingSummary? = 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.GetLendingAnalysisSummaryResponse) : this() {
this.analyzeLendingModelVersion = x.analyzeLendingModelVersion
this.documentMetadata = x.documentMetadata
this.jobStatus = x.jobStatus
this.statusMessage = x.statusMessage
this.summary = x.summary
this.warnings = x.warnings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.GetLendingAnalysisSummaryResponse = GetLendingAnalysisSummaryResponse(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)
}
/**
* construct an [aws.sdk.kotlin.services.textract.model.LendingSummary] inside the given [block]
*/
public fun summary(block: aws.sdk.kotlin.services.textract.model.LendingSummary.Builder.() -> kotlin.Unit) {
this.summary = aws.sdk.kotlin.services.textract.model.LendingSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}