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

commonMain.aws.sdk.kotlin.services.honeycode.model.TableColumn.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 column in a table
 */
public class TableColumn private constructor(builder: Builder) {
    /**
     * The column level format that is applied in the table. An empty value in this field means that the column format is the default value 'AUTO'.
     */
    public val format: aws.sdk.kotlin.services.honeycode.model.Format? = builder.format
    /**
     * The id of the column in the table.
     */
    public val tableColumnId: kotlin.String? = builder.tableColumnId
    /**
     * The name of the column in the table.
     */
    public val tableColumnName: kotlin.String? = builder.tableColumnName

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

    override fun toString(): kotlin.String = buildString {
        append("TableColumn(")
        append("format=$format,")
        append("tableColumnId=$tableColumnId,")
        append("tableColumnName=$tableColumnName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = format?.hashCode() ?: 0
        result = 31 * result + (tableColumnId?.hashCode() ?: 0)
        result = 31 * result + (tableColumnName?.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 TableColumn

        if (format != other.format) return false
        if (tableColumnId != other.tableColumnId) return false
        if (tableColumnName != other.tableColumnName) return false

        return true
    }

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

    public class Builder {
        /**
         * The column level format that is applied in the table. An empty value in this field means that the column format is the default value 'AUTO'.
         */
        public var format: aws.sdk.kotlin.services.honeycode.model.Format? = null
        /**
         * The id of the column in the table.
         */
        public var tableColumnId: kotlin.String? = null
        /**
         * The name of the column in the table.
         */
        public var tableColumnName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.honeycode.model.TableColumn) : this() {
            this.format = x.format
            this.tableColumnId = x.tableColumnId
            this.tableColumnName = x.tableColumnName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy