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

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

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

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



/**
 * Information about the source of a logical table. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.
 */
class LogicalTableSource private constructor(builder: Builder) {
    /**
     * The Amazon Resource Number (ARN) of the parent dataset.
     */
    val dataSetArn: kotlin.String? = builder.dataSetArn
    /**
     * Specifies the result of a join of two logical tables.
     */
    val joinInstruction: aws.sdk.kotlin.services.quicksight.model.JoinInstruction? = builder.joinInstruction
    /**
     * Physical table ID.
     */
    val physicalTableId: kotlin.String? = builder.physicalTableId

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

    override fun toString(): kotlin.String = buildString {
        append("LogicalTableSource(")
        append("dataSetArn=$dataSetArn,")
        append("joinInstruction=$joinInstruction,")
        append("physicalTableId=$physicalTableId)")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataSetArn?.hashCode() ?: 0
        result = 31 * result + (joinInstruction?.hashCode() ?: 0)
        result = 31 * result + (physicalTableId?.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 LogicalTableSource

        if (dataSetArn != other.dataSetArn) return false
        if (joinInstruction != other.joinInstruction) return false
        if (physicalTableId != other.physicalTableId) return false

        return true
    }

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

    class Builder {
        /**
         * The Amazon Resource Number (ARN) of the parent dataset.
         */
        var dataSetArn: kotlin.String? = null
        /**
         * Specifies the result of a join of two logical tables.
         */
        var joinInstruction: aws.sdk.kotlin.services.quicksight.model.JoinInstruction? = null
        /**
         * Physical table ID.
         */
        var physicalTableId: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.LogicalTableSource) : this() {
            this.dataSetArn = x.dataSetArn
            this.joinInstruction = x.joinInstruction
            this.physicalTableId = x.physicalTableId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy