
commonMain.aws.sdk.kotlin.services.honeycode.model.BatchDeleteTableRowsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.honeycode.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchDeleteTableRowsResponse private constructor(builder: Builder) {
/**
* The list of row ids in the request that could not be deleted from the table. Each element in this list contains one row id from the request that could not be deleted along with the reason why that item could not be deleted.
*/
public val failedBatchItems: List? = builder.failedBatchItems
/**
* The updated workbook cursor after deleting the rows from 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.BatchDeleteTableRowsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchDeleteTableRowsResponse(")
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 BatchDeleteTableRowsResponse
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.BatchDeleteTableRowsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The list of row ids in the request that could not be deleted from the table. Each element in this list contains one row id from the request that could not be deleted along with the reason why that item could not be deleted.
*/
public var failedBatchItems: List? = null
/**
* The updated workbook cursor after deleting the rows from the table.
*/
public var workbookCursor: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.honeycode.model.BatchDeleteTableRowsResponse) : this() {
this.failedBatchItems = x.failedBatchItems
this.workbookCursor = x.workbookCursor
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.honeycode.model.BatchDeleteTableRowsResponse = BatchDeleteTableRowsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy