
commonMain.aws.sdk.kotlin.services.honeycode.model.CellInput.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.honeycode.model
/**
* CellInput object contains the data needed to create or update cells in a table.
*
* CellInput object has only a facts field or a fact field, but not both. A 400 bad request will be thrown if both fact and facts field are present.
*/
public class CellInput private constructor(builder: Builder) {
/**
* Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas need to start with the equals (=) sign.
*/
public val fact: kotlin.String? = builder.fact
/**
* A list representing the values that are entered into a ROWSET cell. Facts list can have either only values or rowIDs, and rowIDs should from the same table.
*/
public val facts: List? = builder.facts
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.honeycode.model.CellInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CellInput(")
append("fact=*** Sensitive Data Redacted ***,")
append("facts=$facts")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fact?.hashCode() ?: 0
result = 31 * result + (facts?.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 CellInput
if (fact != other.fact) return false
if (facts != other.facts) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.honeycode.model.CellInput = Builder(this).apply(block).build()
public class Builder {
/**
* Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas need to start with the equals (=) sign.
*/
public var fact: kotlin.String? = null
/**
* A list representing the values that are entered into a ROWSET cell. Facts list can have either only values or rowIDs, and rowIDs should from the same table.
*/
public var facts: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.honeycode.model.CellInput) : this() {
this.fact = x.fact
this.facts = x.facts
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.honeycode.model.CellInput = CellInput(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy