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

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

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

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



/**
 * The usage configuration to apply to child datasets that reference this dataset as a source.
 */
class DataSetUsageConfiguration private constructor(builder: Builder) {
    /**
     * An option that controls whether a child dataset of a direct query can use this dataset as a source.
     */
    val disableUseAsDirectQuerySource: kotlin.Boolean = builder.disableUseAsDirectQuerySource
    /**
     * An option that controls whether a child dataset that's stored in QuickSight can use this dataset as a source.
     */
    val disableUseAsImportedSource: kotlin.Boolean = builder.disableUseAsImportedSource

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

    override fun toString(): kotlin.String = buildString {
        append("DataSetUsageConfiguration(")
        append("disableUseAsDirectQuerySource=$disableUseAsDirectQuerySource,")
        append("disableUseAsImportedSource=$disableUseAsImportedSource)")
    }

    override fun hashCode(): kotlin.Int {
        var result = disableUseAsDirectQuerySource.hashCode()
        result = 31 * result + (disableUseAsImportedSource.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 DataSetUsageConfiguration

        if (disableUseAsDirectQuerySource != other.disableUseAsDirectQuerySource) return false
        if (disableUseAsImportedSource != other.disableUseAsImportedSource) return false

        return true
    }

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

    class Builder {
        /**
         * An option that controls whether a child dataset of a direct query can use this dataset as a source.
         */
        var disableUseAsDirectQuerySource: kotlin.Boolean = false
        /**
         * An option that controls whether a child dataset that's stored in QuickSight can use this dataset as a source.
         */
        var disableUseAsImportedSource: kotlin.Boolean = false

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.DataSetUsageConfiguration) : this() {
            this.disableUseAsDirectQuerySource = x.disableUseAsDirectQuerySource
            this.disableUseAsImportedSource = x.disableUseAsImportedSource
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy