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

commonMain.aws.sdk.kotlin.services.appstream.model.Theme.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.appstream.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The custom branding theme, which might include a custom logo, website links, and other branding to display to users.
 */
public class Theme private constructor(builder: Builder) {
    /**
     * The time the theme was created.
     */
    public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * The stack that has the custom branding theme.
     */
    public val stackName: kotlin.String? = builder.stackName
    /**
     * The state of the theme.
     */
    public val state: aws.sdk.kotlin.services.appstream.model.ThemeState? = builder.state
    /**
     * The URL of the icon that displays at the top of a user's browser tab during streaming sessions.
     */
    public val themeFaviconUrl: kotlin.String? = builder.themeFaviconUrl
    /**
     * The website links that display in the catalog page footer.
     */
    public val themeFooterLinks: List? = builder.themeFooterLinks
    /**
     * The URL of the logo that displays in the catalog page header.
     */
    public val themeOrganizationLogoUrl: kotlin.String? = builder.themeOrganizationLogoUrl
    /**
     * The color that is used for the website links, text, buttons, and catalog page background.
     */
    public val themeStyling: aws.sdk.kotlin.services.appstream.model.ThemeStyling? = builder.themeStyling
    /**
     * The browser tab page title.
     */
    public val themeTitleText: kotlin.String? = builder.themeTitleText

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

    override fun toString(): kotlin.String = buildString {
        append("Theme(")
        append("createdTime=$createdTime,")
        append("stackName=$stackName,")
        append("state=$state,")
        append("themeFaviconUrl=$themeFaviconUrl,")
        append("themeFooterLinks=$themeFooterLinks,")
        append("themeOrganizationLogoUrl=$themeOrganizationLogoUrl,")
        append("themeStyling=$themeStyling,")
        append("themeTitleText=$themeTitleText")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdTime?.hashCode() ?: 0
        result = 31 * result + (stackName?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (themeFaviconUrl?.hashCode() ?: 0)
        result = 31 * result + (themeFooterLinks?.hashCode() ?: 0)
        result = 31 * result + (themeOrganizationLogoUrl?.hashCode() ?: 0)
        result = 31 * result + (themeStyling?.hashCode() ?: 0)
        result = 31 * result + (themeTitleText?.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 Theme

        if (createdTime != other.createdTime) return false
        if (stackName != other.stackName) return false
        if (state != other.state) return false
        if (themeFaviconUrl != other.themeFaviconUrl) return false
        if (themeFooterLinks != other.themeFooterLinks) return false
        if (themeOrganizationLogoUrl != other.themeOrganizationLogoUrl) return false
        if (themeStyling != other.themeStyling) return false
        if (themeTitleText != other.themeTitleText) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The time the theme was created.
         */
        public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The stack that has the custom branding theme.
         */
        public var stackName: kotlin.String? = null
        /**
         * The state of the theme.
         */
        public var state: aws.sdk.kotlin.services.appstream.model.ThemeState? = null
        /**
         * The URL of the icon that displays at the top of a user's browser tab during streaming sessions.
         */
        public var themeFaviconUrl: kotlin.String? = null
        /**
         * The website links that display in the catalog page footer.
         */
        public var themeFooterLinks: List? = null
        /**
         * The URL of the logo that displays in the catalog page header.
         */
        public var themeOrganizationLogoUrl: kotlin.String? = null
        /**
         * The color that is used for the website links, text, buttons, and catalog page background.
         */
        public var themeStyling: aws.sdk.kotlin.services.appstream.model.ThemeStyling? = null
        /**
         * The browser tab page title.
         */
        public var themeTitleText: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appstream.model.Theme) : this() {
            this.createdTime = x.createdTime
            this.stackName = x.stackName
            this.state = x.state
            this.themeFaviconUrl = x.themeFaviconUrl
            this.themeFooterLinks = x.themeFooterLinks
            this.themeOrganizationLogoUrl = x.themeOrganizationLogoUrl
            this.themeStyling = x.themeStyling
            this.themeTitleText = x.themeTitleText
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy