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

commonMain.aws.sdk.kotlin.services.quicksight.model.Folder.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 folder in Amazon QuickSight.
 */
class Folder private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) for 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
    /**
     * An array of ancestor ARN strings for the folder.
     */
    val folderPath: List? = builder.folderPath
    /**
     * The type of folder it is.
     */
    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
    /**
     * A display name for the folder.
     */
    val name: kotlin.String? = builder.name

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

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

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

    class Builder {
        /**
         * The Amazon Resource Name (ARN) for 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
        /**
         * An array of ancestor ARN strings for the folder.
         */
        var folderPath: List? = null
        /**
         * The type of folder it is.
         */
        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
        /**
         * A display name for the folder.
         */
        var name: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy