commonMain.aws.sdk.kotlin.services.textract.model.AdapterVersionDatasetConfig.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
/**
* The dataset configuration options for a given version of an adapter. Can include an Amazon S3 bucket if specified.
*/
public class AdapterVersionDatasetConfig private constructor(builder: Builder) {
/**
* The S3 bucket name and file name that identifies the document.
*
* The AWS Region for the S3 bucket that contains the document must match the Region that you use for Amazon Textract operations.
*
* For Amazon Textract to process a file in an S3 bucket, the user must have permission to access the S3 bucket and file.
*/
public val manifestS3Object: aws.sdk.kotlin.services.textract.model.S3Object? = builder.manifestS3Object
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.AdapterVersionDatasetConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AdapterVersionDatasetConfig(")
append("manifestS3Object=$manifestS3Object")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = manifestS3Object?.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 AdapterVersionDatasetConfig
if (manifestS3Object != other.manifestS3Object) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.AdapterVersionDatasetConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The S3 bucket name and file name that identifies the document.
*
* The AWS Region for the S3 bucket that contains the document must match the Region that you use for Amazon Textract operations.
*
* For Amazon Textract to process a file in an S3 bucket, the user must have permission to access the S3 bucket and file.
*/
public var manifestS3Object: aws.sdk.kotlin.services.textract.model.S3Object? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.AdapterVersionDatasetConfig) : this() {
this.manifestS3Object = x.manifestS3Object
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.AdapterVersionDatasetConfig = AdapterVersionDatasetConfig(this)
/**
* construct an [aws.sdk.kotlin.services.textract.model.S3Object] inside the given [block]
*/
public fun manifestS3Object(block: aws.sdk.kotlin.services.textract.model.S3Object.Builder.() -> kotlin.Unit) {
this.manifestS3Object = aws.sdk.kotlin.services.textract.model.S3Object.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}