commonMain.aws.sdk.kotlin.services.redshift.model.UpdateTarget.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
/**
* A maintenance track that you can switch the current track to.
*/
public class UpdateTarget private constructor(builder: Builder) {
/**
* The cluster version for the new maintenance track.
*/
public val databaseVersion: kotlin.String? = builder.databaseVersion
/**
* The name of the new maintenance track.
*/
public val maintenanceTrackName: kotlin.String? = builder.maintenanceTrackName
/**
* A list of operations supported by the maintenance track.
*/
public val supportedOperations: List? = builder.supportedOperations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.UpdateTarget = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateTarget(")
append("databaseVersion=$databaseVersion,")
append("maintenanceTrackName=$maintenanceTrackName,")
append("supportedOperations=$supportedOperations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = databaseVersion?.hashCode() ?: 0
result = 31 * result + (maintenanceTrackName?.hashCode() ?: 0)
result = 31 * result + (supportedOperations?.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 UpdateTarget
if (databaseVersion != other.databaseVersion) return false
if (maintenanceTrackName != other.maintenanceTrackName) return false
if (supportedOperations != other.supportedOperations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.UpdateTarget = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The cluster version for the new maintenance track.
*/
public var databaseVersion: kotlin.String? = null
/**
* The name of the new maintenance track.
*/
public var maintenanceTrackName: kotlin.String? = null
/**
* A list of operations supported by the maintenance track.
*/
public var supportedOperations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.UpdateTarget) : this() {
this.databaseVersion = x.databaseVersion
this.maintenanceTrackName = x.maintenanceTrackName
this.supportedOperations = x.supportedOperations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.UpdateTarget = UpdateTarget(this)
internal fun correctErrors(): Builder {
return this
}
}
}