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

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

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

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



/**
 * The parameters for Snowflake.
 */
class SnowflakeParameters private constructor(builder: Builder) {
    /**
     * Database.
     */
    val database: kotlin.String? = builder.database
    /**
     * Host.
     */
    val host: kotlin.String? = builder.host
    /**
     * Warehouse.
     */
    val warehouse: kotlin.String? = builder.warehouse

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

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

    override fun hashCode(): kotlin.Int {
        var result = database?.hashCode() ?: 0
        result = 31 * result + (host?.hashCode() ?: 0)
        result = 31 * result + (warehouse?.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 SnowflakeParameters

        if (database != other.database) return false
        if (host != other.host) return false
        if (warehouse != other.warehouse) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.SnowflakeParameters = Builder(this).apply(block).build()

    class Builder {
        /**
         * Database.
         */
        var database: kotlin.String? = null
        /**
         * Host.
         */
        var host: kotlin.String? = null
        /**
         * Warehouse.
         */
        var warehouse: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy