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

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

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

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



/**
 * Information about the dashboard that you want to embed.
 */
class AnonymousUserDashboardEmbeddingConfiguration private constructor(builder: Builder) {
    /**
     * The dashboard ID for the dashboard that you want the user to see first. This ID is included in the output URL. When the URL in response is accessed, Amazon QuickSight renders this dashboard.
     *
     * The Amazon Resource Name (ARN) of this dashboard must be included in the `AuthorizedResourceArns` parameter. Otherwise, the request will fail with `InvalidParameterValueException`.
     */
    val initialDashboardId: kotlin.String? = builder.initialDashboardId

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

    override fun toString(): kotlin.String = buildString {
        append("AnonymousUserDashboardEmbeddingConfiguration(")
        append("initialDashboardId=$initialDashboardId)")
    }

    override fun hashCode(): kotlin.Int {
        var result = initialDashboardId?.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 AnonymousUserDashboardEmbeddingConfiguration

        if (initialDashboardId != other.initialDashboardId) return false

        return true
    }

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

    class Builder {
        /**
         * The dashboard ID for the dashboard that you want the user to see first. This ID is included in the output URL. When the URL in response is accessed, Amazon QuickSight renders this dashboard.
         *
         * The Amazon Resource Name (ARN) of this dashboard must be included in the `AuthorizedResourceArns` parameter. Otherwise, the request will fail with `InvalidParameterValueException`.
         */
        var initialDashboardId: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.AnonymousUserDashboardEmbeddingConfiguration) : this() {
            this.initialDashboardId = x.initialDashboardId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy