commonMain.aws.sdk.kotlin.services.textract.model.LineItemGroup.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
/**
* A grouping of tables which contain LineItems, with each table identified by the table's `LineItemGroupIndex`.
*/
public class LineItemGroup private constructor(builder: Builder) {
/**
* The number used to identify a specific table in a document. The first table encountered will have a LineItemGroupIndex of 1, the second 2, etc.
*/
public val lineItemGroupIndex: kotlin.Int? = builder.lineItemGroupIndex
/**
* The breakdown of information on a particular line of a table.
*/
public val lineItems: List? = builder.lineItems
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.LineItemGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LineItemGroup(")
append("lineItemGroupIndex=$lineItemGroupIndex,")
append("lineItems=$lineItems")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lineItemGroupIndex ?: 0
result = 31 * result + (lineItems?.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 LineItemGroup
if (lineItemGroupIndex != other.lineItemGroupIndex) return false
if (lineItems != other.lineItems) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.LineItemGroup = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number used to identify a specific table in a document. The first table encountered will have a LineItemGroupIndex of 1, the second 2, etc.
*/
public var lineItemGroupIndex: kotlin.Int? = null
/**
* The breakdown of information on a particular line of a table.
*/
public var lineItems: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.LineItemGroup) : this() {
this.lineItemGroupIndex = x.lineItemGroupIndex
this.lineItems = x.lineItems
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.LineItemGroup = LineItemGroup(this)
internal fun correctErrors(): Builder {
return this
}
}
}