commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.TimestampColumn.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information about the column used to track time in a source data file.
*/
public class TimestampColumn private constructor(builder: Builder) {
/**
* The format of the timestamp column.
*/
public val columnFormat: kotlin.String? = builder.columnFormat
/**
* The name of the timestamp column.
*/
public val columnName: kotlin.String? = builder.columnName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.TimestampColumn = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TimestampColumn(")
append("columnFormat=$columnFormat,")
append("columnName=$columnName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columnFormat?.hashCode() ?: 0
result = 31 * result + (columnName?.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 TimestampColumn
if (columnFormat != other.columnFormat) return false
if (columnName != other.columnName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.TimestampColumn = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The format of the timestamp column.
*/
public var columnFormat: kotlin.String? = null
/**
* The name of the timestamp column.
*/
public var columnName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.TimestampColumn) : this() {
this.columnFormat = x.columnFormat
this.columnName = x.columnName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.TimestampColumn = TimestampColumn(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy