
commonMain.aws.sdk.kotlin.services.honeycode.model.BatchCreateTableRowsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.honeycode.model
public class BatchCreateTableRowsResponse private constructor(builder: Builder) {
/**
* The map of batch item id to the row id that was created for that item.
*/
public val createdRows: Map = requireNotNull(builder.createdRows) { "A non-null value must be provided for createdRows" }
/**
* The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.
*/
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.BatchCreateTableRowsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchCreateTableRowsResponse(")
append("createdRows=$createdRows,")
append("failedBatchItems=$failedBatchItems,")
append("workbookCursor=$workbookCursor")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdRows.hashCode()
result = 31 * 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 BatchCreateTableRowsResponse
if (createdRows != other.createdRows) return false
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.BatchCreateTableRowsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The map of batch item id to the row id that was created for that item.
*/
public var createdRows: Map? = null
/**
* The list of batch items in the request that could not be added to the table. Each element in this list contains one item from the request that could not be added to the table along with the reason why that item could not be added.
*/
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.BatchCreateTableRowsResponse) : this() {
this.createdRows = x.createdRows
this.failedBatchItems = x.failedBatchItems
this.workbookCursor = x.workbookCursor
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.honeycode.model.BatchCreateTableRowsResponse = BatchCreateTableRowsResponse(this)
internal fun correctErrors(): Builder {
if (createdRows == null) createdRows = emptyMap()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy