commonMain.aws.sdk.kotlin.services.finspace.model.KxDatabaseCacheConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspace-jvm Show documentation
Show all versions of finspace-jvm Show documentation
The AWS SDK for Kotlin client for finspace
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
/**
* The structure of database cache configuration that is used for mapping database paths to cache types in clusters.
*/
public class KxDatabaseCacheConfiguration private constructor(builder: Builder) {
/**
* The type of disk cache. This parameter is used to map the database path to cache storage. The valid values are:
* + CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
*/
public val cacheType: kotlin.String? = builder.cacheType
/**
* Specifies the portions of database that will be loaded into the cache for access.
*/
public val dbPaths: List? = builder.dbPaths
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspace.model.KxDatabaseCacheConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KxDatabaseCacheConfiguration(")
append("cacheType=$cacheType,")
append("dbPaths=$dbPaths")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cacheType?.hashCode() ?: 0
result = 31 * result + (dbPaths?.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 KxDatabaseCacheConfiguration
if (cacheType != other.cacheType) return false
if (dbPaths != other.dbPaths) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.KxDatabaseCacheConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The type of disk cache. This parameter is used to map the database path to cache storage. The valid values are:
* + CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
*/
public var cacheType: kotlin.String? = null
/**
* Specifies the portions of database that will be loaded into the cache for access.
*/
public var dbPaths: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspace.model.KxDatabaseCacheConfiguration) : this() {
this.cacheType = x.cacheType
this.dbPaths = x.dbPaths
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspace.model.KxDatabaseCacheConfiguration = KxDatabaseCacheConfiguration(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy