commonMain.aws.sdk.kotlin.services.glue.model.RecrawlPolicy.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* When crawling an Amazon S3 data source after the first crawl is complete, specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run. For more information, see [Incremental Crawls in Glue](https://docs.aws.amazon.com/glue/latest/dg/incremental-crawls.html) in the developer guide.
*/
public class RecrawlPolicy private constructor(builder: Builder) {
/**
* Specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run.
*
* A value of `CRAWL_EVERYTHING` specifies crawling the entire dataset again.
*
* A value of `CRAWL_NEW_FOLDERS_ONLY` specifies crawling only folders that were added since the last crawler run.
*
* A value of `CRAWL_EVENT_MODE` specifies crawling only the changes identified by Amazon S3 events.
*/
public val recrawlBehavior: aws.sdk.kotlin.services.glue.model.RecrawlBehavior? = builder.recrawlBehavior
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.RecrawlPolicy = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RecrawlPolicy(")
append("recrawlBehavior=$recrawlBehavior")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = recrawlBehavior?.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 RecrawlPolicy
if (recrawlBehavior != other.recrawlBehavior) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.RecrawlPolicy = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run.
*
* A value of `CRAWL_EVERYTHING` specifies crawling the entire dataset again.
*
* A value of `CRAWL_NEW_FOLDERS_ONLY` specifies crawling only folders that were added since the last crawler run.
*
* A value of `CRAWL_EVENT_MODE` specifies crawling only the changes identified by Amazon S3 events.
*/
public var recrawlBehavior: aws.sdk.kotlin.services.glue.model.RecrawlBehavior? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.RecrawlPolicy) : this() {
this.recrawlBehavior = x.recrawlBehavior
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.RecrawlPolicy = RecrawlPolicy(this)
internal fun correctErrors(): Builder {
return this
}
}
}