
commonMain.aws.sdk.kotlin.services.quicksight.model.SparkParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* The parameters for Spark.
*/
class SparkParameters private constructor(builder: Builder) {
/**
* 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.SparkParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SparkParameters(")
append("host=$host,")
append("port=$port)")
}
override fun hashCode(): kotlin.Int {
var 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 SparkParameters
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.SparkParameters = Builder(this).apply(block).build()
class Builder {
/**
* Host.
*/
var host: kotlin.String? = null
/**
* Port.
*/
var port: kotlin.Int = 0
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.SparkParameters) : this() {
this.host = x.host
this.port = x.port
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.SparkParameters = SparkParameters(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy