commonMain.aws.sdk.kotlin.services.finspacedata.model.SchemaDefinition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata-jvm Show documentation
Show all versions of finspacedata-jvm Show documentation
The AWS SDK for Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
/**
* Definition for a schema on a tabular Dataset.
*/
public class SchemaDefinition private constructor(builder: Builder) {
/**
* List of column definitions.
*/
public val columns: List? = builder.columns
/**
* List of column names used for primary key.
*/
public val primaryKeyColumns: List? = builder.primaryKeyColumns
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.SchemaDefinition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SchemaDefinition(")
append("columns=$columns,")
append("primaryKeyColumns=$primaryKeyColumns")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columns?.hashCode() ?: 0
result = 31 * result + (primaryKeyColumns?.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 SchemaDefinition
if (columns != other.columns) return false
if (primaryKeyColumns != other.primaryKeyColumns) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.SchemaDefinition = Builder(this).apply(block).build()
public class Builder {
/**
* List of column definitions.
*/
public var columns: List? = null
/**
* List of column names used for primary key.
*/
public var primaryKeyColumns: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.SchemaDefinition) : this() {
this.columns = x.columns
this.primaryKeyColumns = x.primaryKeyColumns
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.SchemaDefinition = SchemaDefinition(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy