commonMain.aws.sdk.kotlin.services.textract.model.AnalyzeIdResponse.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 AnalyzeIdResponse private constructor(builder: Builder) {
/**
* The version of the AnalyzeIdentity API being used to process documents.
*/
public val analyzeIdModelVersion: kotlin.String? = builder.analyzeIdModelVersion
/**
* Information about the input document.
*/
public val documentMetadata: aws.sdk.kotlin.services.textract.model.DocumentMetadata? = builder.documentMetadata
/**
* The list of documents processed by AnalyzeID. Includes a number denoting their place in the list and the response structure for the document.
*/
public val identityDocuments: List? = builder.identityDocuments
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.AnalyzeIdResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnalyzeIdResponse(")
append("analyzeIdModelVersion=$analyzeIdModelVersion,")
append("documentMetadata=$documentMetadata,")
append("identityDocuments=$identityDocuments")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analyzeIdModelVersion?.hashCode() ?: 0
result = 31 * result + (documentMetadata?.hashCode() ?: 0)
result = 31 * result + (identityDocuments?.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 AnalyzeIdResponse
if (analyzeIdModelVersion != other.analyzeIdModelVersion) return false
if (documentMetadata != other.documentMetadata) return false
if (identityDocuments != other.identityDocuments) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.AnalyzeIdResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The version of the AnalyzeIdentity API being used to process documents.
*/
public var analyzeIdModelVersion: kotlin.String? = null
/**
* Information about the input document.
*/
public var documentMetadata: aws.sdk.kotlin.services.textract.model.DocumentMetadata? = null
/**
* The list of documents processed by AnalyzeID. Includes a number denoting their place in the list and the response structure for the document.
*/
public var identityDocuments: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.AnalyzeIdResponse) : this() {
this.analyzeIdModelVersion = x.analyzeIdModelVersion
this.documentMetadata = x.documentMetadata
this.identityDocuments = x.identityDocuments
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.AnalyzeIdResponse = AnalyzeIdResponse(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
}
}
}