commonMain.aws.sdk.kotlin.services.redshift.model.ModifyClusterMaintenanceRequest.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class ModifyClusterMaintenanceRequest private constructor(builder: Builder) {
/**
* A unique identifier for the cluster.
*/
public val clusterIdentifier: kotlin.String? = builder.clusterIdentifier
/**
* A boolean indicating whether to enable the deferred maintenance window.
*/
public val deferMaintenance: kotlin.Boolean? = builder.deferMaintenance
/**
* An integer indicating the duration of the maintenance window in days. If you specify a duration, you can't specify an end time. The duration must be 45 days or less.
*/
public val deferMaintenanceDuration: kotlin.Int? = builder.deferMaintenanceDuration
/**
* A timestamp indicating end time for the deferred maintenance window. If you specify an end time, you can't specify a duration.
*/
public val deferMaintenanceEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.deferMaintenanceEndTime
/**
* A unique identifier for the deferred maintenance window.
*/
public val deferMaintenanceIdentifier: kotlin.String? = builder.deferMaintenanceIdentifier
/**
* A timestamp indicating the start time for the deferred maintenance window.
*/
public val deferMaintenanceStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.deferMaintenanceStartTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.ModifyClusterMaintenanceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyClusterMaintenanceRequest(")
append("clusterIdentifier=$clusterIdentifier,")
append("deferMaintenance=$deferMaintenance,")
append("deferMaintenanceDuration=$deferMaintenanceDuration,")
append("deferMaintenanceEndTime=$deferMaintenanceEndTime,")
append("deferMaintenanceIdentifier=$deferMaintenanceIdentifier,")
append("deferMaintenanceStartTime=$deferMaintenanceStartTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterIdentifier?.hashCode() ?: 0
result = 31 * result + (deferMaintenance?.hashCode() ?: 0)
result = 31 * result + (deferMaintenanceDuration ?: 0)
result = 31 * result + (deferMaintenanceEndTime?.hashCode() ?: 0)
result = 31 * result + (deferMaintenanceIdentifier?.hashCode() ?: 0)
result = 31 * result + (deferMaintenanceStartTime?.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 ModifyClusterMaintenanceRequest
if (clusterIdentifier != other.clusterIdentifier) return false
if (deferMaintenance != other.deferMaintenance) return false
if (deferMaintenanceDuration != other.deferMaintenanceDuration) return false
if (deferMaintenanceEndTime != other.deferMaintenanceEndTime) return false
if (deferMaintenanceIdentifier != other.deferMaintenanceIdentifier) return false
if (deferMaintenanceStartTime != other.deferMaintenanceStartTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.ModifyClusterMaintenanceRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the cluster.
*/
public var clusterIdentifier: kotlin.String? = null
/**
* A boolean indicating whether to enable the deferred maintenance window.
*/
public var deferMaintenance: kotlin.Boolean? = null
/**
* An integer indicating the duration of the maintenance window in days. If you specify a duration, you can't specify an end time. The duration must be 45 days or less.
*/
public var deferMaintenanceDuration: kotlin.Int? = null
/**
* A timestamp indicating end time for the deferred maintenance window. If you specify an end time, you can't specify a duration.
*/
public var deferMaintenanceEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A unique identifier for the deferred maintenance window.
*/
public var deferMaintenanceIdentifier: kotlin.String? = null
/**
* A timestamp indicating the start time for the deferred maintenance window.
*/
public var deferMaintenanceStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.ModifyClusterMaintenanceRequest) : this() {
this.clusterIdentifier = x.clusterIdentifier
this.deferMaintenance = x.deferMaintenance
this.deferMaintenanceDuration = x.deferMaintenanceDuration
this.deferMaintenanceEndTime = x.deferMaintenanceEndTime
this.deferMaintenanceIdentifier = x.deferMaintenanceIdentifier
this.deferMaintenanceStartTime = x.deferMaintenanceStartTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.ModifyClusterMaintenanceRequest = ModifyClusterMaintenanceRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}