commonMain.aws.sdk.kotlin.services.textract.model.LendingDocument.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
/**
* Holds the structured data returned by AnalyzeDocument for lending documents.
*/
public class LendingDocument private constructor(builder: Builder) {
/**
* An array of LendingField objects.
*/
public val lendingFields: List? = builder.lendingFields
/**
* A list of signatures detected in a lending document.
*/
public val signatureDetections: List? = builder.signatureDetections
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.LendingDocument = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LendingDocument(")
append("lendingFields=$lendingFields,")
append("signatureDetections=$signatureDetections")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lendingFields?.hashCode() ?: 0
result = 31 * result + (signatureDetections?.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 LendingDocument
if (lendingFields != other.lendingFields) return false
if (signatureDetections != other.signatureDetections) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.LendingDocument = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of LendingField objects.
*/
public var lendingFields: List? = null
/**
* A list of signatures detected in a lending document.
*/
public var signatureDetections: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.LendingDocument) : this() {
this.lendingFields = x.lendingFields
this.signatureDetections = x.signatureDetections
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.LendingDocument = LendingDocument(this)
internal fun correctErrors(): Builder {
return this
}
}
}