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

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

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

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



/**
 * Dataset configuration.
 */
class DataSetConfiguration private constructor(builder: Builder) {
    /**
     * A structure containing the list of column group schemas.
     */
    val columnGroupSchemaList: List? = builder.columnGroupSchemaList
    /**
     * Dataset schema.
     */
    val dataSetSchema: aws.sdk.kotlin.services.quicksight.model.DataSetSchema? = builder.dataSetSchema
    /**
     * Placeholder.
     */
    val placeholder: kotlin.String? = builder.placeholder

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

    override fun toString(): kotlin.String = buildString {
        append("DataSetConfiguration(")
        append("columnGroupSchemaList=$columnGroupSchemaList,")
        append("dataSetSchema=$dataSetSchema,")
        append("placeholder=$placeholder)")
    }

    override fun hashCode(): kotlin.Int {
        var result = columnGroupSchemaList?.hashCode() ?: 0
        result = 31 * result + (dataSetSchema?.hashCode() ?: 0)
        result = 31 * result + (placeholder?.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 DataSetConfiguration

        if (columnGroupSchemaList != other.columnGroupSchemaList) return false
        if (dataSetSchema != other.dataSetSchema) return false
        if (placeholder != other.placeholder) return false

        return true
    }

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

    class Builder {
        /**
         * A structure containing the list of column group schemas.
         */
        var columnGroupSchemaList: List? = null
        /**
         * Dataset schema.
         */
        var dataSetSchema: aws.sdk.kotlin.services.quicksight.model.DataSetSchema? = null
        /**
         * Placeholder.
         */
        var placeholder: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.DataSetConfiguration) : this() {
            this.columnGroupSchemaList = x.columnGroupSchemaList
            this.dataSetSchema = x.dataSetSchema
            this.placeholder = x.placeholder
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy