commonMain.aws.sdk.kotlin.services.backup.model.DisassociateRecoveryPointRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DisassociateRecoveryPointRequest private constructor(builder: Builder) {
/**
* The unique name of an Backup vault.
*/
public val backupVaultName: kotlin.String? = builder.backupVaultName
/**
* An Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.
*/
public val recoveryPointArn: kotlin.String? = builder.recoveryPointArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.DisassociateRecoveryPointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisassociateRecoveryPointRequest(")
append("backupVaultName=$backupVaultName,")
append("recoveryPointArn=$recoveryPointArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backupVaultName?.hashCode() ?: 0
result = 31 * result + (recoveryPointArn?.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 DisassociateRecoveryPointRequest
if (backupVaultName != other.backupVaultName) return false
if (recoveryPointArn != other.recoveryPointArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.DisassociateRecoveryPointRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique name of an Backup vault.
*/
public var backupVaultName: kotlin.String? = null
/**
* An Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.
*/
public var recoveryPointArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.DisassociateRecoveryPointRequest) : this() {
this.backupVaultName = x.backupVaultName
this.recoveryPointArn = x.recoveryPointArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.DisassociateRecoveryPointRequest = DisassociateRecoveryPointRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}