
commonMain.aws.sdk.kotlin.services.quicksight.model.RelationalTable.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* A physical table type for relational data sources.
*/
class RelationalTable private constructor(builder: Builder) {
/**
* The catalog associated with a table.
*/
val catalog: kotlin.String? = builder.catalog
/**
* The Amazon Resource Name (ARN) for the data source.
*/
val dataSourceArn: kotlin.String? = builder.dataSourceArn
/**
* The column schema of the table.
*/
val inputColumns: List? = builder.inputColumns
/**
* The name of the relational table.
*/
val name: kotlin.String? = builder.name
/**
* The schema name. This name applies to certain relational database engines.
*/
val schema: kotlin.String? = builder.schema
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.RelationalTable = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RelationalTable(")
append("catalog=$catalog,")
append("dataSourceArn=$dataSourceArn,")
append("inputColumns=$inputColumns,")
append("name=$name,")
append("schema=$schema)")
}
override fun hashCode(): kotlin.Int {
var result = catalog?.hashCode() ?: 0
result = 31 * result + (dataSourceArn?.hashCode() ?: 0)
result = 31 * result + (inputColumns?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (schema?.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 RelationalTable
if (catalog != other.catalog) return false
if (dataSourceArn != other.dataSourceArn) return false
if (inputColumns != other.inputColumns) return false
if (name != other.name) return false
if (schema != other.schema) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.RelationalTable = Builder(this).apply(block).build()
class Builder {
/**
* The catalog associated with a table.
*/
var catalog: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the data source.
*/
var dataSourceArn: kotlin.String? = null
/**
* The column schema of the table.
*/
var inputColumns: List? = null
/**
* The name of the relational table.
*/
var name: kotlin.String? = null
/**
* The schema name. This name applies to certain relational database engines.
*/
var schema: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.RelationalTable) : this() {
this.catalog = x.catalog
this.dataSourceArn = x.dataSourceArn
this.inputColumns = x.inputColumns
this.name = x.name
this.schema = x.schema
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.RelationalTable = RelationalTable(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy