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

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

/**
 * A summary of information about an existing Amazon QuickSight folder.
 */
class FolderSummary private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the folder.
     */
    val arn: kotlin.String? = builder.arn
    /**
     * The time that the folder was created.
     */
    val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * The ID of the folder.
     */
    val folderId: kotlin.String? = builder.folderId
    /**
     * The type of folder.
     */
    val folderType: aws.sdk.kotlin.services.quicksight.model.FolderType? = builder.folderType
    /**
     * The time that the folder was last updated.
     */
    val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
    /**
     * The display name of the folder.
     */
    val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("FolderSummary(")
        append("arn=$arn,")
        append("createdTime=$createdTime,")
        append("folderId=$folderId,")
        append("folderType=$folderType,")
        append("lastUpdatedTime=$lastUpdatedTime,")
        append("name=$name)")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (createdTime?.hashCode() ?: 0)
        result = 31 * result + (folderId?.hashCode() ?: 0)
        result = 31 * result + (folderType?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
        result = 31 * result + (name?.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 FolderSummary

        if (arn != other.arn) return false
        if (createdTime != other.createdTime) return false
        if (folderId != other.folderId) return false
        if (folderType != other.folderType) return false
        if (lastUpdatedTime != other.lastUpdatedTime) return false
        if (name != other.name) return false

        return true
    }

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

    class Builder {
        /**
         * The Amazon Resource Name (ARN) of the folder.
         */
        var arn: kotlin.String? = null
        /**
         * The time that the folder was created.
         */
        var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ID of the folder.
         */
        var folderId: kotlin.String? = null
        /**
         * The type of folder.
         */
        var folderType: aws.sdk.kotlin.services.quicksight.model.FolderType? = null
        /**
         * The time that the folder was last updated.
         */
        var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The display name of the folder.
         */
        var name: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.FolderSummary) : this() {
            this.arn = x.arn
            this.createdTime = x.createdTime
            this.folderId = x.folderId
            this.folderType = x.folderType
            this.lastUpdatedTime = x.lastUpdatedTime
            this.name = x.name
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy