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

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

/**
 * Dashboard version summary.
 */
class DashboardVersionSummary private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the resource.
     */
    val arn: kotlin.String? = builder.arn
    /**
     * The time that this dashboard version was created.
     */
    val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * Description.
     */
    val description: kotlin.String? = builder.description
    /**
     * Source entity ARN.
     */
    val sourceEntityArn: kotlin.String? = builder.sourceEntityArn
    /**
     * The HTTP status of the request.
     */
    val status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = builder.status
    /**
     * Version number.
     */
    val versionNumber: kotlin.Long? = builder.versionNumber

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

    override fun toString(): kotlin.String = buildString {
        append("DashboardVersionSummary(")
        append("arn=$arn,")
        append("createdTime=$createdTime,")
        append("description=$description,")
        append("sourceEntityArn=$sourceEntityArn,")
        append("status=$status,")
        append("versionNumber=$versionNumber)")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (createdTime?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (sourceEntityArn?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (versionNumber?.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 DashboardVersionSummary

        if (arn != other.arn) return false
        if (createdTime != other.createdTime) return false
        if (description != other.description) return false
        if (sourceEntityArn != other.sourceEntityArn) return false
        if (status != other.status) return false
        if (versionNumber != other.versionNumber) return false

        return true
    }

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

    class Builder {
        /**
         * The Amazon Resource Name (ARN) of the resource.
         */
        var arn: kotlin.String? = null
        /**
         * The time that this dashboard version was created.
         */
        var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Description.
         */
        var description: kotlin.String? = null
        /**
         * Source entity ARN.
         */
        var sourceEntityArn: kotlin.String? = null
        /**
         * The HTTP status of the request.
         */
        var status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = null
        /**
         * Version number.
         */
        var versionNumber: kotlin.Long? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.DashboardVersionSummary) : this() {
            this.arn = x.arn
            this.createdTime = x.createdTime
            this.description = x.description
            this.sourceEntityArn = x.sourceEntityArn
            this.status = x.status
            this.versionNumber = x.versionNumber
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy