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

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

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

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



public class BatchPutDocumentRequest 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 added.
     */
    public val dataSourceSyncId: kotlin.String? = builder.dataSourceSyncId
    /**
     * One or more documents to add to the index.
     */
    public val documents: List? = builder.documents
    /**
     * The identifier of the Amazon Q Business index to add the documents to.
     */
    public val indexId: kotlin.String? = builder.indexId
    /**
     * The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket.
     */
    public val roleArn: kotlin.String? = builder.roleArn

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

    override fun toString(): kotlin.String = buildString {
        append("BatchPutDocumentRequest(")
        append("applicationId=$applicationId,")
        append("dataSourceSyncId=$dataSourceSyncId,")
        append("documents=$documents,")
        append("indexId=$indexId,")
        append("roleArn=$roleArn")
        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)
        result = 31 * result + (roleArn?.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 BatchPutDocumentRequest

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

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.BatchPutDocumentRequest = 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 added.
         */
        public var dataSourceSyncId: kotlin.String? = null
        /**
         * One or more documents to add to the index.
         */
        public var documents: List? = null
        /**
         * The identifier of the Amazon Q Business index to add the documents to.
         */
        public var indexId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket.
         */
        public var roleArn: kotlin.String? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy