commonMain.aws.sdk.kotlin.services.finspace.model.KxCacheStorageConfiguration.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 configuration for read only disk cache associated with a cluster.
*/
public class KxCacheStorageConfiguration private constructor(builder: Builder) {
/**
* The size of cache in Gigabytes.
*/
public val size: kotlin.Int? = builder.size
/**
* The type of cache storage . The valid values are:
* + CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspace.model.KxCacheStorageConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KxCacheStorageConfiguration(")
append("size=$size,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = size ?: 0
result = 31 * result + (type?.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 KxCacheStorageConfiguration
if (size != other.size) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.KxCacheStorageConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The size of cache in Gigabytes.
*/
public var size: kotlin.Int? = null
/**
* The type of cache storage . The valid values are:
* + CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspace.model.KxCacheStorageConfiguration) : this() {
this.size = x.size
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspace.model.KxCacheStorageConfiguration = KxCacheStorageConfiguration(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy