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

commonMain.aws.sdk.kotlin.services.quicksight.model.OutputColumn.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.quicksight.model



/**
 * Output column.
 */
class OutputColumn private constructor(builder: Builder) {
    /**
     * A description for a column.
     */
    val description: kotlin.String? = builder.description
    /**
     * A display name for the dataset.
     */
    val name: kotlin.String? = builder.name
    /**
     * Type.
     */
    val type: aws.sdk.kotlin.services.quicksight.model.ColumnDataType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("OutputColumn(")
        append("description=$description,")
        append("name=$name,")
        append("type=$type)")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (type?.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 OutputColumn

        if (description != other.description) return false
        if (name != other.name) return false
        if (type != other.type) return false

        return true
    }

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

    class Builder {
        /**
         * A description for a column.
         */
        var description: kotlin.String? = null
        /**
         * A display name for the dataset.
         */
        var name: kotlin.String? = null
        /**
         * Type.
         */
        var type: aws.sdk.kotlin.services.quicksight.model.ColumnDataType? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.OutputColumn) : this() {
            this.description = x.description
            this.name = x.name
            this.type = x.type
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.quicksight.model.OutputColumn = OutputColumn(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy