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

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

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

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



/**
 * A *logical table* is a unit that joins and that data transformations operate on. A logical table has a source, which can be either a physical table or result of a join. When a logical table points to a physical table, the logical table acts as a mutable copy of that physical table through transform operations.
 */
class LogicalTable private constructor(builder: Builder) {
    /**
     * A display name for the logical table.
     */
    val alias: kotlin.String? = builder.alias
    /**
     * Transform operations that act on this logical table.
     */
    val dataTransforms: List? = builder.dataTransforms
    /**
     * Source of this logical table.
     */
    val source: aws.sdk.kotlin.services.quicksight.model.LogicalTableSource? = builder.source

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

    override fun toString(): kotlin.String = buildString {
        append("LogicalTable(")
        append("alias=$alias,")
        append("dataTransforms=$dataTransforms,")
        append("source=$source)")
    }

    override fun hashCode(): kotlin.Int {
        var result = alias?.hashCode() ?: 0
        result = 31 * result + (dataTransforms?.hashCode() ?: 0)
        result = 31 * result + (source?.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 LogicalTable

        if (alias != other.alias) return false
        if (dataTransforms != other.dataTransforms) return false
        if (source != other.source) return false

        return true
    }

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

    class Builder {
        /**
         * A display name for the logical table.
         */
        var alias: kotlin.String? = null
        /**
         * Transform operations that act on this logical table.
         */
        var dataTransforms: List? = null
        /**
         * Source of this logical table.
         */
        var source: aws.sdk.kotlin.services.quicksight.model.LogicalTableSource? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.LogicalTable) : this() {
            this.alias = x.alias
            this.dataTransforms = x.dataTransforms
            this.source = x.source
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.quicksight.model.LogicalTableSource] inside the given [block]
         */
        fun source(block: aws.sdk.kotlin.services.quicksight.model.LogicalTableSource.Builder.() -> kotlin.Unit) {
            this.source = aws.sdk.kotlin.services.quicksight.model.LogicalTableSource.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy