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

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

/**
 * Dataset summary.
 */
class DataSetSummary private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the dataset.
     */
    val arn: kotlin.String? = builder.arn
    /**
     * A value that indicates if the dataset has column level permission configured.
     */
    val columnLevelPermissionRulesApplied: kotlin.Boolean = builder.columnLevelPermissionRulesApplied
    /**
     * The time that this dataset was created.
     */
    val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * The ID of the dataset.
     */
    val dataSetId: kotlin.String? = builder.dataSetId
    /**
     * A value that indicates whether you want to import the data into SPICE.
     */
    val importMode: aws.sdk.kotlin.services.quicksight.model.DataSetImportMode? = builder.importMode
    /**
     * The last time that this dataset was updated.
     */
    val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
    /**
     * A display name for the dataset.
     */
    val name: kotlin.String? = builder.name
    /**
     * The row-level security configuration for the dataset.
     */
    val rowLevelPermissionDataSet: aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionDataSet? = builder.rowLevelPermissionDataSet
    /**
     * Whether or not the row level permission tags are applied.
     */
    val rowLevelPermissionTagConfigurationApplied: kotlin.Boolean = builder.rowLevelPermissionTagConfigurationApplied

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

    override fun toString(): kotlin.String = buildString {
        append("DataSetSummary(")
        append("arn=$arn,")
        append("columnLevelPermissionRulesApplied=$columnLevelPermissionRulesApplied,")
        append("createdTime=$createdTime,")
        append("dataSetId=$dataSetId,")
        append("importMode=$importMode,")
        append("lastUpdatedTime=$lastUpdatedTime,")
        append("name=$name,")
        append("rowLevelPermissionDataSet=$rowLevelPermissionDataSet,")
        append("rowLevelPermissionTagConfigurationApplied=$rowLevelPermissionTagConfigurationApplied)")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (columnLevelPermissionRulesApplied.hashCode())
        result = 31 * result + (createdTime?.hashCode() ?: 0)
        result = 31 * result + (dataSetId?.hashCode() ?: 0)
        result = 31 * result + (importMode?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (rowLevelPermissionDataSet?.hashCode() ?: 0)
        result = 31 * result + (rowLevelPermissionTagConfigurationApplied.hashCode())
        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 DataSetSummary

        if (arn != other.arn) return false
        if (columnLevelPermissionRulesApplied != other.columnLevelPermissionRulesApplied) return false
        if (createdTime != other.createdTime) return false
        if (dataSetId != other.dataSetId) return false
        if (importMode != other.importMode) return false
        if (lastUpdatedTime != other.lastUpdatedTime) return false
        if (name != other.name) return false
        if (rowLevelPermissionDataSet != other.rowLevelPermissionDataSet) return false
        if (rowLevelPermissionTagConfigurationApplied != other.rowLevelPermissionTagConfigurationApplied) return false

        return true
    }

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

    class Builder {
        /**
         * The Amazon Resource Name (ARN) of the dataset.
         */
        var arn: kotlin.String? = null
        /**
         * A value that indicates if the dataset has column level permission configured.
         */
        var columnLevelPermissionRulesApplied: kotlin.Boolean = false
        /**
         * The time that this dataset was created.
         */
        var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ID of the dataset.
         */
        var dataSetId: kotlin.String? = null
        /**
         * A value that indicates whether you want to import the data into SPICE.
         */
        var importMode: aws.sdk.kotlin.services.quicksight.model.DataSetImportMode? = null
        /**
         * The last time that this dataset was updated.
         */
        var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A display name for the dataset.
         */
        var name: kotlin.String? = null
        /**
         * The row-level security configuration for the dataset.
         */
        var rowLevelPermissionDataSet: aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionDataSet? = null
        /**
         * Whether or not the row level permission tags are applied.
         */
        var rowLevelPermissionTagConfigurationApplied: kotlin.Boolean = false

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.DataSetSummary) : this() {
            this.arn = x.arn
            this.columnLevelPermissionRulesApplied = x.columnLevelPermissionRulesApplied
            this.createdTime = x.createdTime
            this.dataSetId = x.dataSetId
            this.importMode = x.importMode
            this.lastUpdatedTime = x.lastUpdatedTime
            this.name = x.name
            this.rowLevelPermissionDataSet = x.rowLevelPermissionDataSet
            this.rowLevelPermissionTagConfigurationApplied = x.rowLevelPermissionTagConfigurationApplied
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionDataSet] inside the given [block]
         */
        fun rowLevelPermissionDataSet(block: aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionDataSet.Builder.() -> kotlin.Unit) {
            this.rowLevelPermissionDataSet = aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionDataSet.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy