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

commonMain.aws.sdk.kotlin.services.quicksight.model.CreateDataSetRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.quicksight.model



class CreateDataSetRequest private constructor(builder: Builder) {
    /**
     * The Amazon Web Services account ID.
     */
    val awsAccountId: kotlin.String? = builder.awsAccountId
    /**
     * Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.
     */
    val columnGroups: List? = builder.columnGroups
    /**
     * A set of one or more definitions of a ` ColumnLevelPermissionRule `.
     */
    val columnLevelPermissionRules: List? = builder.columnLevelPermissionRules
    /**
     * An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
     */
    val dataSetId: kotlin.String? = builder.dataSetId
    /**
     * The usage configuration to apply to child datasets that reference this dataset as a source.
     */
    val dataSetUsageConfiguration: aws.sdk.kotlin.services.quicksight.model.DataSetUsageConfiguration? = builder.dataSetUsageConfiguration
    /**
     * The folder that contains fields and nested subfolders for your dataset.
     */
    val fieldFolders: Map? = builder.fieldFolders
    /**
     * Indicates whether you want to import the data into SPICE.
     */
    val importMode: aws.sdk.kotlin.services.quicksight.model.DataSetImportMode? = builder.importMode
    /**
     * Configures the combination and transformation of the data from the physical tables.
     */
    val logicalTableMap: Map? = builder.logicalTableMap
    /**
     * The display name for the dataset.
     */
    val name: kotlin.String? = builder.name
    /**
     * A list of resource permissions on the dataset.
     */
    val permissions: List? = builder.permissions
    /**
     * Declares the physical tables that are available in the underlying data sources.
     */
    val physicalTableMap: Map? = builder.physicalTableMap
    /**
     * The row-level security configuration for the data that you want to create.
     */
    val rowLevelPermissionDataSet: aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionDataSet? = builder.rowLevelPermissionDataSet
    /**
     * The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.
     */
    val rowLevelPermissionTagConfiguration: aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionTagConfiguration? = builder.rowLevelPermissionTagConfiguration
    /**
     * Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.
     */
    val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateDataSetRequest(")
        append("awsAccountId=$awsAccountId,")
        append("columnGroups=$columnGroups,")
        append("columnLevelPermissionRules=$columnLevelPermissionRules,")
        append("dataSetId=$dataSetId,")
        append("dataSetUsageConfiguration=$dataSetUsageConfiguration,")
        append("fieldFolders=$fieldFolders,")
        append("importMode=$importMode,")
        append("logicalTableMap=$logicalTableMap,")
        append("name=$name,")
        append("permissions=$permissions,")
        append("physicalTableMap=$physicalTableMap,")
        append("rowLevelPermissionDataSet=$rowLevelPermissionDataSet,")
        append("rowLevelPermissionTagConfiguration=$rowLevelPermissionTagConfiguration,")
        append("tags=$tags)")
    }

    override fun hashCode(): kotlin.Int {
        var result = awsAccountId?.hashCode() ?: 0
        result = 31 * result + (columnGroups?.hashCode() ?: 0)
        result = 31 * result + (columnLevelPermissionRules?.hashCode() ?: 0)
        result = 31 * result + (dataSetId?.hashCode() ?: 0)
        result = 31 * result + (dataSetUsageConfiguration?.hashCode() ?: 0)
        result = 31 * result + (fieldFolders?.hashCode() ?: 0)
        result = 31 * result + (importMode?.hashCode() ?: 0)
        result = 31 * result + (logicalTableMap?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (permissions?.hashCode() ?: 0)
        result = 31 * result + (physicalTableMap?.hashCode() ?: 0)
        result = 31 * result + (rowLevelPermissionDataSet?.hashCode() ?: 0)
        result = 31 * result + (rowLevelPermissionTagConfiguration?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateDataSetRequest

        if (awsAccountId != other.awsAccountId) return false
        if (columnGroups != other.columnGroups) return false
        if (columnLevelPermissionRules != other.columnLevelPermissionRules) return false
        if (dataSetId != other.dataSetId) return false
        if (dataSetUsageConfiguration != other.dataSetUsageConfiguration) return false
        if (fieldFolders != other.fieldFolders) return false
        if (importMode != other.importMode) return false
        if (logicalTableMap != other.logicalTableMap) return false
        if (name != other.name) return false
        if (permissions != other.permissions) return false
        if (physicalTableMap != other.physicalTableMap) return false
        if (rowLevelPermissionDataSet != other.rowLevelPermissionDataSet) return false
        if (rowLevelPermissionTagConfiguration != other.rowLevelPermissionTagConfiguration) return false
        if (tags != other.tags) return false

        return true
    }

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

    class Builder {
        /**
         * The Amazon Web Services account ID.
         */
        var awsAccountId: kotlin.String? = null
        /**
         * Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.
         */
        var columnGroups: List? = null
        /**
         * A set of one or more definitions of a ` ColumnLevelPermissionRule `.
         */
        var columnLevelPermissionRules: List? = null
        /**
         * An ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
         */
        var dataSetId: kotlin.String? = null
        /**
         * The usage configuration to apply to child datasets that reference this dataset as a source.
         */
        var dataSetUsageConfiguration: aws.sdk.kotlin.services.quicksight.model.DataSetUsageConfiguration? = null
        /**
         * The folder that contains fields and nested subfolders for your dataset.
         */
        var fieldFolders: Map? = null
        /**
         * Indicates whether you want to import the data into SPICE.
         */
        var importMode: aws.sdk.kotlin.services.quicksight.model.DataSetImportMode? = null
        /**
         * Configures the combination and transformation of the data from the physical tables.
         */
        var logicalTableMap: Map? = null
        /**
         * The display name for the dataset.
         */
        var name: kotlin.String? = null
        /**
         * A list of resource permissions on the dataset.
         */
        var permissions: List? = null
        /**
         * Declares the physical tables that are available in the underlying data sources.
         */
        var physicalTableMap: Map? = null
        /**
         * The row-level security configuration for the data that you want to create.
         */
        var rowLevelPermissionDataSet: aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionDataSet? = null
        /**
         * The configuration of tags on a dataset to set row-level security. Row-level security tags are currently supported for anonymous embedding only.
         */
        var rowLevelPermissionTagConfiguration: aws.sdk.kotlin.services.quicksight.model.RowLevelPermissionTagConfiguration? = null
        /**
         * Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.
         */
        var tags: List? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.CreateDataSetRequest) : this() {
            this.awsAccountId = x.awsAccountId
            this.columnGroups = x.columnGroups
            this.columnLevelPermissionRules = x.columnLevelPermissionRules
            this.dataSetId = x.dataSetId
            this.dataSetUsageConfiguration = x.dataSetUsageConfiguration
            this.fieldFolders = x.fieldFolders
            this.importMode = x.importMode
            this.logicalTableMap = x.logicalTableMap
            this.name = x.name
            this.permissions = x.permissions
            this.physicalTableMap = x.physicalTableMap
            this.rowLevelPermissionDataSet = x.rowLevelPermissionDataSet
            this.rowLevelPermissionTagConfiguration = x.rowLevelPermissionTagConfiguration
            this.tags = x.tags
        }

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

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

        /**
         * 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)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy