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

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

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

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



/**
 * Metadata for a column that is used as the input of a transform operation.
 */
class InputColumn private constructor(builder: Builder) {
    /**
     * The name of this column in the underlying data source.
     */
    val name: kotlin.String? = builder.name
    /**
     * The data type of the column.
     */
    val type: aws.sdk.kotlin.services.quicksight.model.InputColumnDataType? = builder.type

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

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

    override fun hashCode(): kotlin.Int {
        var 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 InputColumn

        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.InputColumn = Builder(this).apply(block).build()

    class Builder {
        /**
         * The name of this column in the underlying data source.
         */
        var name: kotlin.String? = null
        /**
         * The data type of the column.
         */
        var type: aws.sdk.kotlin.services.quicksight.model.InputColumnDataType? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy