
commonMain.aws.sdk.kotlin.services.kendra.model.BatchPutDocumentResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
public class BatchPutDocumentResponse private constructor(builder: Builder) {
/**
* A list of documents that were not added to the index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.
*
* If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see [Monitoring Amazon Kendra with Amazon CloudWatch logs](https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html).
*/
public val failedDocuments: List? = builder.failedDocuments
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.BatchPutDocumentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchPutDocumentResponse(")
append("failedDocuments=$failedDocuments")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failedDocuments?.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 BatchPutDocumentResponse
if (failedDocuments != other.failedDocuments) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.BatchPutDocumentResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A list of documents that were not added to the index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.
*
* If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see [Monitoring Amazon Kendra with Amazon CloudWatch logs](https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html).
*/
public var failedDocuments: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.BatchPutDocumentResponse) : this() {
this.failedDocuments = x.failedDocuments
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.BatchPutDocumentResponse = BatchPutDocumentResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy