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