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

commonMain.aws.sdk.kotlin.services.finspace.model.KxDatabaseConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.finspace.model



/**
 * The configuration of data that is available for querying from this database.
 */
public class KxDatabaseConfiguration private constructor(builder: Builder) {
    /**
     * Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the cluster.
     */
    public val cacheConfigurations: List? = builder.cacheConfigurations
    /**
     * A unique identifier of the changeset that is associated with the cluster.
     */
    public val changesetId: kotlin.String? = builder.changesetId
    /**
     * The name of the kdb database. When this parameter is specified in the structure, S3 with the whole database is included by default.
     */
    public val databaseName: kotlin.String? = builder.databaseName

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

    override fun toString(): kotlin.String = buildString {
        append("KxDatabaseConfiguration(")
        append("cacheConfigurations=$cacheConfigurations,")
        append("changesetId=$changesetId,")
        append("databaseName=$databaseName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = cacheConfigurations?.hashCode() ?: 0
        result = 31 * result + (changesetId?.hashCode() ?: 0)
        result = 31 * result + (databaseName?.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 KxDatabaseConfiguration

        if (cacheConfigurations != other.cacheConfigurations) return false
        if (changesetId != other.changesetId) return false
        if (databaseName != other.databaseName) return false

        return true
    }

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

    public class Builder {
        /**
         * Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the cluster.
         */
        public var cacheConfigurations: List? = null
        /**
         * A unique identifier of the changeset that is associated with the cluster.
         */
        public var changesetId: kotlin.String? = null
        /**
         * The name of the kdb database. When this parameter is specified in the structure, S3 with the whole database is included by default.
         */
        public var databaseName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.KxDatabaseConfiguration) : this() {
            this.cacheConfigurations = x.cacheConfigurations
            this.changesetId = x.changesetId
            this.databaseName = x.databaseName
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy