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

commonMain.aws.sdk.kotlin.services.honeycode.model.BatchUpdateTableRowsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.honeycode.model



public class BatchUpdateTableRowsResponse private constructor(builder: Builder) {
    /**
     * The list of batch items in the request that could not be updated in the table. Each element in this list contains one item from the request that could not be updated in the table along with the reason why that item could not be updated.
     */
    public val failedBatchItems: List? = builder.failedBatchItems
    /**
     * The updated workbook cursor after adding the new rows at the end of the table.
     */
    public val workbookCursor: kotlin.Long = builder.workbookCursor

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

    override fun toString(): kotlin.String = buildString {
        append("BatchUpdateTableRowsResponse(")
        append("failedBatchItems=$failedBatchItems,")
        append("workbookCursor=$workbookCursor")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = failedBatchItems?.hashCode() ?: 0
        result = 31 * result + (workbookCursor.hashCode())
        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 BatchUpdateTableRowsResponse

        if (failedBatchItems != other.failedBatchItems) return false
        if (workbookCursor != other.workbookCursor) return false

        return true
    }

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

    public class Builder {
        /**
         * The list of batch items in the request that could not be updated in the table. Each element in this list contains one item from the request that could not be updated in the table along with the reason why that item could not be updated.
         */
        public var failedBatchItems: List? = null
        /**
         * The updated workbook cursor after adding the new rows at the end of the table.
         */
        public var workbookCursor: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.honeycode.model.BatchUpdateTableRowsResponse) : this() {
            this.failedBatchItems = x.failedBatchItems
            this.workbookCursor = x.workbookCursor
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy