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

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

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

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



/**
 * The parameters for Oracle.
 */
class OracleParameters private constructor(builder: Builder) {
    /**
     * Database.
     */
    val database: kotlin.String? = builder.database
    /**
     * An Oracle 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.OracleParameters = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("OracleParameters(")
        append("database=$database,")
        append("host=$host,")
        append("port=$port)")
    }

    override fun hashCode(): kotlin.Int {
        var result = database?.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 OracleParameters

        if (database != other.database) 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.OracleParameters = Builder(this).apply(block).build()

    class Builder {
        /**
         * Database.
         */
        var database: kotlin.String? = null
        /**
         * An Oracle host.
         */
        var host: kotlin.String? = null
        /**
         * Port.
         */
        var port: kotlin.Int = 0

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy