
commonMain.aws.sdk.kotlin.services.honeycode.model.ResultRow.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.honeycode.model
/**
* A single row in the ResultSet.
*/
public class ResultRow private constructor(builder: Builder) {
/**
* List of all the data cells in a row.
*/
public val dataItems: List = requireNotNull(builder.dataItems) { "A non-null value must be provided for dataItems" }
/**
* The ID for a particular row.
*/
public val rowId: kotlin.String? = builder.rowId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.honeycode.model.ResultRow = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResultRow(")
append("dataItems=$dataItems,")
append("rowId=$rowId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataItems.hashCode()
result = 31 * result + (rowId?.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 ResultRow
if (dataItems != other.dataItems) return false
if (rowId != other.rowId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.honeycode.model.ResultRow = Builder(this).apply(block).build()
public class Builder {
/**
* List of all the data cells in a row.
*/
public var dataItems: List? = null
/**
* The ID for a particular row.
*/
public var rowId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.honeycode.model.ResultRow) : this() {
this.dataItems = x.dataItems
this.rowId = x.rowId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.honeycode.model.ResultRow = ResultRow(this)
internal fun correctErrors(): Builder {
if (dataItems == null) dataItems = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy