
commonMain.aws.sdk.kotlin.services.quicksight.model.PrestoParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* The parameters for Presto.
*/
class PrestoParameters private constructor(builder: Builder) {
/**
* Catalog.
*/
val catalog: kotlin.String? = builder.catalog
/**
* Host.
*/
val host: kotlin.String? = builder.host
/**
* Port.
*/
val port: kotlin.Int = builder.port
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.PrestoParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PrestoParameters(")
append("catalog=$catalog,")
append("host=$host,")
append("port=$port)")
}
override fun hashCode(): kotlin.Int {
var result = catalog?.hashCode() ?: 0
result = 31 * result + (host?.hashCode() ?: 0)
result = 31 * result + (port)
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 PrestoParameters
if (catalog != other.catalog) return false
if (host != other.host) return false
if (port != other.port) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.PrestoParameters = Builder(this).apply(block).build()
class Builder {
/**
* Catalog.
*/
var catalog: kotlin.String? = null
/**
* Host.
*/
var host: kotlin.String? = null
/**
* Port.
*/
var port: kotlin.Int = 0
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.PrestoParameters) : this() {
this.catalog = x.catalog
this.host = x.host
this.port = x.port
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.PrestoParameters = PrestoParameters(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy