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

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

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

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

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

/**
 * Metadata structure for an analysis in Amazon QuickSight
 */
class Analysis private constructor(builder: Builder) {
    /**
     * The ID of the analysis.
     */
    val analysisId: kotlin.String? = builder.analysisId
    /**
     * The Amazon Resource Name (ARN) of the analysis.
     */
    val arn: kotlin.String? = builder.arn
    /**
     * The time that the analysis was created.
     */
    val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * The ARNs of the datasets of the analysis.
     */
    val dataSetArns: List? = builder.dataSetArns
    /**
     * Errors associated with the analysis.
     */
    val errors: List? = builder.errors
    /**
     * The time that the analysis was last updated.
     */
    val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
    /**
     * The descriptive name of the analysis.
     */
    val name: kotlin.String? = builder.name
    /**
     * A list of the associated sheets with the unique identifier and name of each sheet.
     */
    val sheets: List? = builder.sheets
    /**
     * Status associated with the analysis.
     */
    val status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = builder.status
    /**
     * The ARN of the theme of the analysis.
     */
    val themeArn: kotlin.String? = builder.themeArn

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

    override fun toString(): kotlin.String = buildString {
        append("Analysis(")
        append("analysisId=$analysisId,")
        append("arn=$arn,")
        append("createdTime=$createdTime,")
        append("dataSetArns=$dataSetArns,")
        append("errors=$errors,")
        append("lastUpdatedTime=$lastUpdatedTime,")
        append("name=$name,")
        append("sheets=$sheets,")
        append("status=$status,")
        append("themeArn=$themeArn)")
    }

    override fun hashCode(): kotlin.Int {
        var result = analysisId?.hashCode() ?: 0
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (createdTime?.hashCode() ?: 0)
        result = 31 * result + (dataSetArns?.hashCode() ?: 0)
        result = 31 * result + (errors?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (sheets?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (themeArn?.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 Analysis

        if (analysisId != other.analysisId) return false
        if (arn != other.arn) return false
        if (createdTime != other.createdTime) return false
        if (dataSetArns != other.dataSetArns) return false
        if (errors != other.errors) return false
        if (lastUpdatedTime != other.lastUpdatedTime) return false
        if (name != other.name) return false
        if (sheets != other.sheets) return false
        if (status != other.status) return false
        if (themeArn != other.themeArn) return false

        return true
    }

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

    class Builder {
        /**
         * The ID of the analysis.
         */
        var analysisId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the analysis.
         */
        var arn: kotlin.String? = null
        /**
         * The time that the analysis was created.
         */
        var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARNs of the datasets of the analysis.
         */
        var dataSetArns: List? = null
        /**
         * Errors associated with the analysis.
         */
        var errors: List? = null
        /**
         * The time that the analysis was last updated.
         */
        var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The descriptive name of the analysis.
         */
        var name: kotlin.String? = null
        /**
         * A list of the associated sheets with the unique identifier and name of each sheet.
         */
        var sheets: List? = null
        /**
         * Status associated with the analysis.
         */
        var status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = null
        /**
         * The ARN of the theme of the analysis.
         */
        var themeArn: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.Analysis) : this() {
            this.analysisId = x.analysisId
            this.arn = x.arn
            this.createdTime = x.createdTime
            this.dataSetArns = x.dataSetArns
            this.errors = x.errors
            this.lastUpdatedTime = x.lastUpdatedTime
            this.name = x.name
            this.sheets = x.sheets
            this.status = x.status
            this.themeArn = x.themeArn
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy