commonMain.aws.sdk.kotlin.services.redshiftserverless.model.RestoreFromRecoveryPointRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshiftserverless-jvm Show documentation
Show all versions of redshiftserverless-jvm Show documentation
The AWS SDK for Kotlin client for Redshift Serverless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
public class RestoreFromRecoveryPointRequest private constructor(builder: Builder) {
/**
* The name of the namespace to restore data into.
*/
public val namespaceName: kotlin.String? = builder.namespaceName
/**
* The unique identifier of the recovery point to restore from.
*/
public val recoveryPointId: kotlin.String? = builder.recoveryPointId
/**
* The name of the workgroup used to restore data.
*/
public val workgroupName: kotlin.String? = builder.workgroupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftserverless.model.RestoreFromRecoveryPointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RestoreFromRecoveryPointRequest(")
append("namespaceName=$namespaceName,")
append("recoveryPointId=$recoveryPointId,")
append("workgroupName=$workgroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = namespaceName?.hashCode() ?: 0
result = 31 * result + (recoveryPointId?.hashCode() ?: 0)
result = 31 * result + (workgroupName?.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 RestoreFromRecoveryPointRequest
if (namespaceName != other.namespaceName) return false
if (recoveryPointId != other.recoveryPointId) return false
if (workgroupName != other.workgroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftserverless.model.RestoreFromRecoveryPointRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the namespace to restore data into.
*/
public var namespaceName: kotlin.String? = null
/**
* The unique identifier of the recovery point to restore from.
*/
public var recoveryPointId: kotlin.String? = null
/**
* The name of the workgroup used to restore data.
*/
public var workgroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshiftserverless.model.RestoreFromRecoveryPointRequest) : this() {
this.namespaceName = x.namespaceName
this.recoveryPointId = x.recoveryPointId
this.workgroupName = x.workgroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshiftserverless.model.RestoreFromRecoveryPointRequest = RestoreFromRecoveryPointRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}