commonMain.aws.sdk.kotlin.services.textract.model.LendingSummary.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
/**
* Contains information regarding DocumentGroups and UndetectedDocumentTypes.
*/
public class LendingSummary private constructor(builder: Builder) {
/**
* Contains an array of all DocumentGroup objects.
*/
public val documentGroups: List? = builder.documentGroups
/**
* UndetectedDocumentTypes.
*/
public val undetectedDocumentTypes: List? = builder.undetectedDocumentTypes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.LendingSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LendingSummary(")
append("documentGroups=$documentGroups,")
append("undetectedDocumentTypes=$undetectedDocumentTypes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = documentGroups?.hashCode() ?: 0
result = 31 * result + (undetectedDocumentTypes?.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 LendingSummary
if (documentGroups != other.documentGroups) return false
if (undetectedDocumentTypes != other.undetectedDocumentTypes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.LendingSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains an array of all DocumentGroup objects.
*/
public var documentGroups: List? = null
/**
* UndetectedDocumentTypes.
*/
public var undetectedDocumentTypes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.LendingSummary) : this() {
this.documentGroups = x.documentGroups
this.undetectedDocumentTypes = x.undetectedDocumentTypes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.LendingSummary = LendingSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}