commonMain.aws.sdk.kotlin.services.glue.model.SourceTableConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Properties used by the source leg to process data from the source.
*/
public class SourceTableConfig private constructor(builder: Builder) {
/**
* A list of fields used for column-level filtering.
*/
public val fields: List? = builder.fields
/**
* A condition clause used for row-level filtering.
*/
public val filterPredicate: kotlin.String? = builder.filterPredicate
/**
* Unique identifier of a record.
*/
public val primaryKey: List? = builder.primaryKey
/**
* Incremental pull timestamp-based field.
*/
public val recordUpdateField: kotlin.String? = builder.recordUpdateField
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.SourceTableConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SourceTableConfig(")
append("fields=$fields,")
append("filterPredicate=$filterPredicate,")
append("primaryKey=$primaryKey,")
append("recordUpdateField=$recordUpdateField")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fields?.hashCode() ?: 0
result = 31 * result + (filterPredicate?.hashCode() ?: 0)
result = 31 * result + (primaryKey?.hashCode() ?: 0)
result = 31 * result + (recordUpdateField?.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 SourceTableConfig
if (fields != other.fields) return false
if (filterPredicate != other.filterPredicate) return false
if (primaryKey != other.primaryKey) return false
if (recordUpdateField != other.recordUpdateField) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.SourceTableConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of fields used for column-level filtering.
*/
public var fields: List? = null
/**
* A condition clause used for row-level filtering.
*/
public var filterPredicate: kotlin.String? = null
/**
* Unique identifier of a record.
*/
public var primaryKey: List? = null
/**
* Incremental pull timestamp-based field.
*/
public var recordUpdateField: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.SourceTableConfig) : this() {
this.fields = x.fields
this.filterPredicate = x.filterPredicate
this.primaryKey = x.primaryKey
this.recordUpdateField = x.recordUpdateField
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.SourceTableConfig = SourceTableConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy