commonMain.aws.sdk.kotlin.services.databrew.model.UpdateScheduleRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
public class UpdateScheduleRequest private constructor(builder: Builder) {
/**
* The date or dates and time or times when the jobs are to be run. For more information, see [Cron expressions](https://docs.aws.amazon.com/databrew/latest/dg/jobs.cron.html) in the *Glue DataBrew Developer Guide*.
*/
public val cronExpression: kotlin.String? = builder.cronExpression
/**
* The name or names of one or more jobs to be run for this schedule.
*/
public val jobNames: List? = builder.jobNames
/**
* The name of the schedule to update.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.UpdateScheduleRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateScheduleRequest(")
append("cronExpression=$cronExpression,")
append("jobNames=$jobNames,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cronExpression?.hashCode() ?: 0
result = 31 * result + (jobNames?.hashCode() ?: 0)
result = 31 * result + (name?.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 UpdateScheduleRequest
if (cronExpression != other.cronExpression) return false
if (jobNames != other.jobNames) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.UpdateScheduleRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The date or dates and time or times when the jobs are to be run. For more information, see [Cron expressions](https://docs.aws.amazon.com/databrew/latest/dg/jobs.cron.html) in the *Glue DataBrew Developer Guide*.
*/
public var cronExpression: kotlin.String? = null
/**
* The name or names of one or more jobs to be run for this schedule.
*/
public var jobNames: List? = null
/**
* The name of the schedule to update.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.UpdateScheduleRequest) : this() {
this.cronExpression = x.cronExpression
this.jobNames = x.jobNames
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.UpdateScheduleRequest = UpdateScheduleRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy