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

commonMain.aws.sdk.kotlin.services.quicksight.model.TemplateVersionSummary.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 template version.
 */
class TemplateVersionSummary private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the template version.
     */
    val arn: kotlin.String? = builder.arn
    /**
     * The time that this template version was created.
     */
    val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * The description of the template version.
     */
    val description: kotlin.String? = builder.description
    /**
     * The status of the template version.
     */
    val status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = builder.status
    /**
     * The version number of the template version.
     */
    val versionNumber: kotlin.Long? = builder.versionNumber

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

    override fun toString(): kotlin.String = buildString {
        append("TemplateVersionSummary(")
        append("arn=$arn,")
        append("createdTime=$createdTime,")
        append("description=$description,")
        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 + (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 TemplateVersionSummary

        if (arn != other.arn) return false
        if (createdTime != other.createdTime) return false
        if (description != other.description) 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.TemplateVersionSummary = Builder(this).apply(block).build()

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy