commonMain.aws.sdk.kotlin.services.finspacedata.model.ColumnDefinition.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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The definition of a column in a tabular Dataset.
*/
public class ColumnDefinition private constructor(builder: Builder) {
/**
* Description for a column.
*/
public val columnDescription: kotlin.String? = builder.columnDescription
/**
* The name of a column.
*/
public val columnName: kotlin.String? = builder.columnName
/**
* Data type of a column.
* + `STRING` – A String data type.`CHAR` – A char data type.`INTEGER` – An integer data type.`TINYINT` – A tinyint data type.`SMALLINT` – A smallint data type.`BIGINT` – A bigint data type.`FLOAT` – A float data type.`DOUBLE` – A double data type.`DATE` – A date data type.`DATETIME` – A datetime data type.`BOOLEAN` – A boolean data type.`BINARY` – A binary data type.
*/
public val dataType: aws.sdk.kotlin.services.finspacedata.model.ColumnDataType? = builder.dataType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.ColumnDefinition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ColumnDefinition(")
append("columnDescription=$columnDescription,")
append("columnName=$columnName,")
append("dataType=$dataType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columnDescription?.hashCode() ?: 0
result = 31 * result + (columnName?.hashCode() ?: 0)
result = 31 * result + (dataType?.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 ColumnDefinition
if (columnDescription != other.columnDescription) return false
if (columnName != other.columnName) return false
if (dataType != other.dataType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.ColumnDefinition = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Description for a column.
*/
public var columnDescription: kotlin.String? = null
/**
* The name of a column.
*/
public var columnName: kotlin.String? = null
/**
* Data type of a column.
* + `STRING` – A String data type.`CHAR` – A char data type.`INTEGER` – An integer data type.`TINYINT` – A tinyint data type.`SMALLINT` – A smallint data type.`BIGINT` – A bigint data type.`FLOAT` – A float data type.`DOUBLE` – A double data type.`DATE` – A date data type.`DATETIME` – A datetime data type.`BOOLEAN` – A boolean data type.`BINARY` – A binary data type.
*/
public var dataType: aws.sdk.kotlin.services.finspacedata.model.ColumnDataType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.ColumnDefinition) : this() {
this.columnDescription = x.columnDescription
this.columnName = x.columnName
this.dataType = x.dataType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.ColumnDefinition = ColumnDefinition(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy