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

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

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

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



/**
 * The theme configuration. This configuration contains all of the display properties for a theme.
 */
class ThemeConfiguration private constructor(builder: Builder) {
    /**
     * Color properties that apply to chart data colors.
     */
    val dataColorPalette: aws.sdk.kotlin.services.quicksight.model.DataColorPalette? = builder.dataColorPalette
    /**
     * Display options related to sheets.
     */
    val sheet: aws.sdk.kotlin.services.quicksight.model.SheetStyle? = builder.sheet
    /**
     * Color properties that apply to the UI and to charts, excluding the colors that apply to data.
     */
    val uiColorPalette: aws.sdk.kotlin.services.quicksight.model.UiColorPalette? = builder.uiColorPalette

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

    override fun toString(): kotlin.String = buildString {
        append("ThemeConfiguration(")
        append("dataColorPalette=$dataColorPalette,")
        append("sheet=$sheet,")
        append("uiColorPalette=$uiColorPalette)")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataColorPalette?.hashCode() ?: 0
        result = 31 * result + (sheet?.hashCode() ?: 0)
        result = 31 * result + (uiColorPalette?.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 ThemeConfiguration

        if (dataColorPalette != other.dataColorPalette) return false
        if (sheet != other.sheet) return false
        if (uiColorPalette != other.uiColorPalette) return false

        return true
    }

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

    class Builder {
        /**
         * Color properties that apply to chart data colors.
         */
        var dataColorPalette: aws.sdk.kotlin.services.quicksight.model.DataColorPalette? = null
        /**
         * Display options related to sheets.
         */
        var sheet: aws.sdk.kotlin.services.quicksight.model.SheetStyle? = null
        /**
         * Color properties that apply to the UI and to charts, excluding the colors that apply to data.
         */
        var uiColorPalette: aws.sdk.kotlin.services.quicksight.model.UiColorPalette? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.ThemeConfiguration) : this() {
            this.dataColorPalette = x.dataColorPalette
            this.sheet = x.sheet
            this.uiColorPalette = x.uiColorPalette
        }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy