All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.qbusiness.model.BatchDeleteDocumentRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.qbusiness.model



public class BatchDeleteDocumentRequest private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon Q Business application.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * The identifier of the data source sync during which the documents were deleted.
     */
    public val dataSourceSyncId: kotlin.String? = builder.dataSourceSyncId
    /**
     * Documents deleted from the Amazon Q Business index.
     */
    public val documents: List? = builder.documents
    /**
     * The identifier of the Amazon Q Business index that contains the documents to delete.
     */
    public val indexId: kotlin.String? = builder.indexId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.BatchDeleteDocumentRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("BatchDeleteDocumentRequest(")
        append("applicationId=$applicationId,")
        append("dataSourceSyncId=$dataSourceSyncId,")
        append("documents=$documents,")
        append("indexId=$indexId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (dataSourceSyncId?.hashCode() ?: 0)
        result = 31 * result + (documents?.hashCode() ?: 0)
        result = 31 * result + (indexId?.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 BatchDeleteDocumentRequest

        if (applicationId != other.applicationId) return false
        if (dataSourceSyncId != other.dataSourceSyncId) return false
        if (documents != other.documents) return false
        if (indexId != other.indexId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.BatchDeleteDocumentRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The identifier of the Amazon Q Business application.
         */
        public var applicationId: kotlin.String? = null
        /**
         * The identifier of the data source sync during which the documents were deleted.
         */
        public var dataSourceSyncId: kotlin.String? = null
        /**
         * Documents deleted from the Amazon Q Business index.
         */
        public var documents: List? = null
        /**
         * The identifier of the Amazon Q Business index that contains the documents to delete.
         */
        public var indexId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.BatchDeleteDocumentRequest) : this() {
            this.applicationId = x.applicationId
            this.dataSourceSyncId = x.dataSourceSyncId
            this.documents = x.documents
            this.indexId = x.indexId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.qbusiness.model.BatchDeleteDocumentRequest = BatchDeleteDocumentRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy