commonMain.aws.sdk.kotlin.services.timestreamquery.model.SelectColumn.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timestreamquery-jvm Show documentation
Show all versions of timestreamquery-jvm Show documentation
The AWS SDK for Kotlin client for Timestream Query
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.timestreamquery.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Details of the column that is returned by the query.
*/
public class SelectColumn private constructor(builder: Builder) {
/**
* True, if the column name was aliased by the query. False otherwise.
*/
public val aliased: kotlin.Boolean? = builder.aliased
/**
* Database that has this column.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* Name of the column.
*/
public val name: kotlin.String? = builder.name
/**
* Table within the database that has this column.
*/
public val tableName: kotlin.String? = builder.tableName
/**
* Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
*/
public val type: aws.sdk.kotlin.services.timestreamquery.model.Type? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamquery.model.SelectColumn = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SelectColumn(")
append("aliased=$aliased,")
append("databaseName=$databaseName,")
append("name=$name,")
append("tableName=$tableName,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aliased?.hashCode() ?: 0
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (tableName?.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 SelectColumn
if (aliased != other.aliased) return false
if (databaseName != other.databaseName) return false
if (name != other.name) return false
if (tableName != other.tableName) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamquery.model.SelectColumn = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* True, if the column name was aliased by the query. False otherwise.
*/
public var aliased: kotlin.Boolean? = null
/**
* Database that has this column.
*/
public var databaseName: kotlin.String? = null
/**
* Name of the column.
*/
public var name: kotlin.String? = null
/**
* Table within the database that has this column.
*/
public var tableName: kotlin.String? = null
/**
* Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
*/
public var type: aws.sdk.kotlin.services.timestreamquery.model.Type? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamquery.model.SelectColumn) : this() {
this.aliased = x.aliased
this.databaseName = x.databaseName
this.name = x.name
this.tableName = x.tableName
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamquery.model.SelectColumn = SelectColumn(this)
/**
* construct an [aws.sdk.kotlin.services.timestreamquery.model.Type] inside the given [block]
*/
public fun type(block: aws.sdk.kotlin.services.timestreamquery.model.Type.Builder.() -> kotlin.Unit) {
this.type = aws.sdk.kotlin.services.timestreamquery.model.Type.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}