All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.honeycode.model.DataItem.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.honeycode.model



/**
 * The data in a particular data cell defined on the screen.
 */
public class DataItem private constructor(builder: Builder) {
    /**
     * The formatted value of the data. e.g. John Smith.
     */
    public val formattedValue: kotlin.String? = builder.formattedValue
    /**
     * The overrideFormat is optional and is specified only if a particular row of data has a different format for the data than the default format defined on the screen or the table.
     */
    public val overrideFormat: aws.sdk.kotlin.services.honeycode.model.Format? = builder.overrideFormat
    /**
     * The raw value of the data. e.g. [email protected]
     */
    public val rawValue: kotlin.String? = builder.rawValue

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.honeycode.model.DataItem = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DataItem(")
        append("*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = formattedValue?.hashCode() ?: 0
        result = 31 * result + (overrideFormat?.hashCode() ?: 0)
        result = 31 * result + (rawValue?.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 DataItem

        if (formattedValue != other.formattedValue) return false
        if (overrideFormat != other.overrideFormat) return false
        if (rawValue != other.rawValue) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.honeycode.model.DataItem = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The formatted value of the data. e.g. John Smith.
         */
        public var formattedValue: kotlin.String? = null
        /**
         * The overrideFormat is optional and is specified only if a particular row of data has a different format for the data than the default format defined on the screen or the table.
         */
        public var overrideFormat: aws.sdk.kotlin.services.honeycode.model.Format? = null
        /**
         * The raw value of the data. e.g. [email protected]
         */
        public var rawValue: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.honeycode.model.DataItem) : this() {
            this.formattedValue = x.formattedValue
            this.overrideFormat = x.overrideFormat
            this.rawValue = x.rawValue
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.honeycode.model.DataItem = DataItem(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy