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

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

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

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



/**
 * The theme display options for sheets.
 */
class SheetStyle private constructor(builder: Builder) {
    /**
     * The display options for tiles.
     */
    val tile: aws.sdk.kotlin.services.quicksight.model.TileStyle? = builder.tile
    /**
     * The layout options for tiles.
     */
    val tileLayout: aws.sdk.kotlin.services.quicksight.model.TileLayoutStyle? = builder.tileLayout

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

    override fun toString(): kotlin.String = buildString {
        append("SheetStyle(")
        append("tile=$tile,")
        append("tileLayout=$tileLayout)")
    }

    override fun hashCode(): kotlin.Int {
        var result = tile?.hashCode() ?: 0
        result = 31 * result + (tileLayout?.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 SheetStyle

        if (tile != other.tile) return false
        if (tileLayout != other.tileLayout) return false

        return true
    }

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

    class Builder {
        /**
         * The display options for tiles.
         */
        var tile: aws.sdk.kotlin.services.quicksight.model.TileStyle? = null
        /**
         * The layout options for tiles.
         */
        var tileLayout: aws.sdk.kotlin.services.quicksight.model.TileLayoutStyle? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.SheetStyle) : this() {
            this.tile = x.tile
            this.tileLayout = x.tileLayout
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy