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

commonMain.aws.sdk.kotlin.services.quicksight.model.ExasolParameters.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.quicksight.model



/**
 * The required parameters for connecting to an Exasol data source.
 */
class ExasolParameters private constructor(builder: Builder) {
    /**
     * The hostname or IP address of the Exasol data source.
     */
    val host: kotlin.String? = builder.host
    /**
     * The port for the Exasol data source.
     */
    val port: kotlin.Int = builder.port

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

    override fun toString(): kotlin.String = buildString {
        append("ExasolParameters(")
        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 ExasolParameters

        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.ExasolParameters = Builder(this).apply(block).build()

    class Builder {
        /**
         * The hostname or IP address of the Exasol data source.
         */
        var host: kotlin.String? = null
        /**
         * The port for the Exasol data source.
         */
        var port: kotlin.Int = 0

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.ExasolParameters) : this() {
            this.host = x.host
            this.port = x.port
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy