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

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

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

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



/**
 * The Amazon QuickSight customizations associated with your Amazon Web Services account or a QuickSight namespace in a specific Amazon Web Services Region.
 */
class AccountCustomization private constructor(builder: Builder) {
    /**
     * The default email customization template.
     */
    val defaultEmailCustomizationTemplate: kotlin.String? = builder.defaultEmailCustomizationTemplate
    /**
     * The default theme for this Amazon QuickSight subscription.
     */
    val defaultTheme: kotlin.String? = builder.defaultTheme

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

    override fun toString(): kotlin.String = buildString {
        append("AccountCustomization(")
        append("defaultEmailCustomizationTemplate=$defaultEmailCustomizationTemplate,")
        append("defaultTheme=$defaultTheme)")
    }

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

        if (defaultEmailCustomizationTemplate != other.defaultEmailCustomizationTemplate) return false
        if (defaultTheme != other.defaultTheme) return false

        return true
    }

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

    class Builder {
        /**
         * The default email customization template.
         */
        var defaultEmailCustomizationTemplate: kotlin.String? = null
        /**
         * The default theme for this Amazon QuickSight subscription.
         */
        var defaultTheme: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.AccountCustomization) : this() {
            this.defaultEmailCustomizationTemplate = x.defaultEmailCustomizationTemplate
            this.defaultTheme = x.defaultTheme
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy