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

commonMain.aws.sdk.kotlin.services.quicksight.model.AnalysisSummary.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

/**
 * The summary metadata that describes an analysis.
 */
class AnalysisSummary private constructor(builder: Builder) {
    /**
     * The ID of the analysis. This ID displays in the URL.
     */
    val analysisId: kotlin.String? = builder.analysisId
    /**
     * The Amazon Resource Name (ARN) for 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 time that the analysis was last updated.
     */
    val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
    /**
     * The name of the analysis. This name is displayed in the Amazon QuickSight console.
     */
    val name: kotlin.String? = builder.name
    /**
     * The last known status for the analysis.
     */
    val status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("AnalysisSummary(")
        append("analysisId=$analysisId,")
        append("arn=$arn,")
        append("createdTime=$createdTime,")
        append("lastUpdatedTime=$lastUpdatedTime,")
        append("name=$name,")
        append("status=$status)")
    }

    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 + (lastUpdatedTime?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (status?.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 AnalysisSummary

        if (analysisId != other.analysisId) return false
        if (arn != other.arn) return false
        if (createdTime != other.createdTime) return false
        if (lastUpdatedTime != other.lastUpdatedTime) return false
        if (name != other.name) return false
        if (status != other.status) return false

        return true
    }

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

    class Builder {
        /**
         * The ID of the analysis. This ID displays in the URL.
         */
        var analysisId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) for the analysis.
         */
        var arn: kotlin.String? = null
        /**
         * The time that the analysis was created.
         */
        var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The time that the analysis was last updated.
         */
        var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the analysis. This name is displayed in the Amazon QuickSight console.
         */
        var name: kotlin.String? = null
        /**
         * The last known status for the analysis.
         */
        var status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy