commonMain.aws.sdk.kotlin.services.redshift.model.ModifySnapshotScheduleRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ModifySnapshotScheduleRequest private constructor(builder: Builder) {
/**
* An updated list of schedule definitions. A schedule definition is made up of schedule expressions, for example, "cron(30 12 *)" or "rate(12 hours)".
*/
public val scheduleDefinitions: List? = builder.scheduleDefinitions
/**
* A unique alphanumeric identifier of the schedule to modify.
*/
public val scheduleIdentifier: kotlin.String? = builder.scheduleIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.ModifySnapshotScheduleRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifySnapshotScheduleRequest(")
append("scheduleDefinitions=$scheduleDefinitions,")
append("scheduleIdentifier=$scheduleIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = scheduleDefinitions?.hashCode() ?: 0
result = 31 * result + (scheduleIdentifier?.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 ModifySnapshotScheduleRequest
if (scheduleDefinitions != other.scheduleDefinitions) return false
if (scheduleIdentifier != other.scheduleIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.ModifySnapshotScheduleRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An updated list of schedule definitions. A schedule definition is made up of schedule expressions, for example, "cron(30 12 *)" or "rate(12 hours)".
*/
public var scheduleDefinitions: List? = null
/**
* A unique alphanumeric identifier of the schedule to modify.
*/
public var scheduleIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.ModifySnapshotScheduleRequest) : this() {
this.scheduleDefinitions = x.scheduleDefinitions
this.scheduleIdentifier = x.scheduleIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.ModifySnapshotScheduleRequest = ModifySnapshotScheduleRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}