
commonMain.aws.sdk.kotlin.services.redshiftdata.model.TableMember.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftdata.model
/**
* The properties of a table.
*/
public class TableMember private constructor(builder: Builder) {
/**
* The name of the table.
*/
public val name: kotlin.String? = builder.name
/**
* The schema containing the table.
*/
public val schema: kotlin.String? = builder.schema
/**
* The type of the table. Possible values include TABLE, VIEW, SYSTEM TABLE, GLOBAL TEMPORARY, LOCAL TEMPORARY, ALIAS, and SYNONYM.
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftdata.model.TableMember = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TableMember(")
append("name=$name,")
append("schema=$schema,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (schema?.hashCode() ?: 0)
result = 31 * result + (type?.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 TableMember
if (name != other.name) return false
if (schema != other.schema) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftdata.model.TableMember = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the table.
*/
public var name: kotlin.String? = null
/**
* The schema containing the table.
*/
public var schema: kotlin.String? = null
/**
* The type of the table. Possible values include TABLE, VIEW, SYSTEM TABLE, GLOBAL TEMPORARY, LOCAL TEMPORARY, ALIAS, and SYNONYM.
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshiftdata.model.TableMember) : this() {
this.name = x.name
this.schema = x.schema
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshiftdata.model.TableMember = TableMember(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy