commonMain.aws.sdk.kotlin.services.glue.model.UpdateCrawlerScheduleRequest.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
public class UpdateCrawlerScheduleRequest private constructor(builder: Builder) {
/**
* The name of the crawler whose schedule to update.
*/
public val crawlerName: kotlin.String? = builder.crawlerName
/**
* The updated `cron` expression used to specify the schedule (see [Time-Based Schedules for Jobs and Crawlers](https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html). For example, to run something every day at 12:15 UTC, you would specify: `cron(15 12 * * ? *)`.
*/
public val schedule: kotlin.String? = builder.schedule
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.UpdateCrawlerScheduleRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateCrawlerScheduleRequest(")
append("crawlerName=$crawlerName,")
append("schedule=$schedule")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crawlerName?.hashCode() ?: 0
result = 31 * result + (schedule?.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 UpdateCrawlerScheduleRequest
if (crawlerName != other.crawlerName) return false
if (schedule != other.schedule) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.UpdateCrawlerScheduleRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the crawler whose schedule to update.
*/
public var crawlerName: kotlin.String? = null
/**
* The updated `cron` expression used to specify the schedule (see [Time-Based Schedules for Jobs and Crawlers](https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html). For example, to run something every day at 12:15 UTC, you would specify: `cron(15 12 * * ? *)`.
*/
public var schedule: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.UpdateCrawlerScheduleRequest) : this() {
this.crawlerName = x.crawlerName
this.schedule = x.schedule
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.UpdateCrawlerScheduleRequest = UpdateCrawlerScheduleRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}