commonMain.aws.sdk.kotlin.services.glue.model.LineageConfiguration.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies data lineage configuration settings for the crawler.
*/
public class LineageConfiguration private constructor(builder: Builder) {
/**
* Specifies whether data lineage is enabled for the crawler. Valid values are:
* + ENABLE: enables data lineage for the crawler
* + DISABLE: disables data lineage for the crawler
*/
public val crawlerLineageSettings: aws.sdk.kotlin.services.glue.model.CrawlerLineageSettings? = builder.crawlerLineageSettings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.LineageConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LineageConfiguration(")
append("crawlerLineageSettings=$crawlerLineageSettings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crawlerLineageSettings?.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 LineageConfiguration
if (crawlerLineageSettings != other.crawlerLineageSettings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.LineageConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies whether data lineage is enabled for the crawler. Valid values are:
* + ENABLE: enables data lineage for the crawler
* + DISABLE: disables data lineage for the crawler
*/
public var crawlerLineageSettings: aws.sdk.kotlin.services.glue.model.CrawlerLineageSettings? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.LineageConfiguration) : this() {
this.crawlerLineageSettings = x.crawlerLineageSettings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.LineageConfiguration = LineageConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}