
commonMain.aws.sdk.kotlin.services.honeycode.model.QueryTableRowsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.honeycode.model
public class QueryTableRowsResponse private constructor(builder: Builder) {
/**
* The list of columns in the table whose row data is returned in the result.
*/
public val columnIds: List = requireNotNull(builder.columnIds) { "A non-null value must be provided for columnIds" }
/**
* Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the request has been loaded.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The list of rows in the table that match the query filter.
*/
public val rows: List = requireNotNull(builder.rows) { "A non-null value must be provided for rows" }
/**
* Indicates the cursor of the workbook at which the data returned by this request is read. Workbook cursor keeps increasing with every update and the increments are not sequential.
*/
public val workbookCursor: kotlin.Long = builder.workbookCursor
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.honeycode.model.QueryTableRowsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QueryTableRowsResponse(")
append("columnIds=$columnIds,")
append("nextToken=$nextToken,")
append("rows=$rows,")
append("workbookCursor=$workbookCursor")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columnIds.hashCode()
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (rows.hashCode())
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 QueryTableRowsResponse
if (columnIds != other.columnIds) return false
if (nextToken != other.nextToken) return false
if (rows != other.rows) return false
if (workbookCursor != other.workbookCursor) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.honeycode.model.QueryTableRowsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The list of columns in the table whose row data is returned in the result.
*/
public var columnIds: List? = null
/**
* Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the request has been loaded.
*/
public var nextToken: kotlin.String? = null
/**
* The list of rows in the table that match the query filter.
*/
public var rows: List? = null
/**
* Indicates the cursor of the workbook at which the data returned by this request is read. Workbook cursor keeps increasing with every update and the increments are not sequential.
*/
public var workbookCursor: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.honeycode.model.QueryTableRowsResponse) : this() {
this.columnIds = x.columnIds
this.nextToken = x.nextToken
this.rows = x.rows
this.workbookCursor = x.workbookCursor
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.honeycode.model.QueryTableRowsResponse = QueryTableRowsResponse(this)
internal fun correctErrors(): Builder {
if (columnIds == null) columnIds = emptyList()
if (rows == null) rows = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy