
commonMain.aws.sdk.kotlin.services.quicksight.model.RedshiftParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* The parameters for Amazon Redshift. The `ClusterId` field can be blank if `Host` and `Port` are both set. The `Host` and `Port` fields can be blank if the `ClusterId` field is set.
*/
class RedshiftParameters private constructor(builder: Builder) {
/**
* Cluster ID. This field can be blank if the `Host` and `Port` are provided.
*/
val clusterId: kotlin.String? = builder.clusterId
/**
* Database.
*/
val database: kotlin.String? = builder.database
/**
* Host. This field can be blank if `ClusterId` is provided.
*/
val host: kotlin.String? = builder.host
/**
* Port. This field can be blank if the `ClusterId` is provided.
*/
val port: kotlin.Int = builder.port
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.RedshiftParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RedshiftParameters(")
append("clusterId=$clusterId,")
append("database=$database,")
append("host=$host,")
append("port=$port)")
}
override fun hashCode(): kotlin.Int {
var result = clusterId?.hashCode() ?: 0
result = 31 * 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 RedshiftParameters
if (clusterId != other.clusterId) return false
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.RedshiftParameters = Builder(this).apply(block).build()
class Builder {
/**
* Cluster ID. This field can be blank if the `Host` and `Port` are provided.
*/
var clusterId: kotlin.String? = null
/**
* Database.
*/
var database: kotlin.String? = null
/**
* Host. This field can be blank if `ClusterId` is provided.
*/
var host: kotlin.String? = null
/**
* Port. This field can be blank if the `ClusterId` is provided.
*/
var port: kotlin.Int = 0
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.RedshiftParameters) : this() {
this.clusterId = x.clusterId
this.database = x.database
this.host = x.host
this.port = x.port
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.RedshiftParameters = RedshiftParameters(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy