
commonMain.aws.sdk.kotlin.services.cloudhsmv2.model.CopyBackupToRegionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudhsmv2.model
public class CopyBackupToRegionResponse private constructor(builder: Builder) {
/**
* Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.
*
* You will need to use the `sourceBackupID` returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.
*/
public val destinationBackup: aws.sdk.kotlin.services.cloudhsmv2.model.DestinationBackup? = builder.destinationBackup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudhsmv2.model.CopyBackupToRegionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CopyBackupToRegionResponse(")
append("destinationBackup=$destinationBackup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationBackup?.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 CopyBackupToRegionResponse
if (destinationBackup != other.destinationBackup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudhsmv2.model.CopyBackupToRegionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.
*
* You will need to use the `sourceBackupID` returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.
*/
public var destinationBackup: aws.sdk.kotlin.services.cloudhsmv2.model.DestinationBackup? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudhsmv2.model.CopyBackupToRegionResponse) : this() {
this.destinationBackup = x.destinationBackup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudhsmv2.model.CopyBackupToRegionResponse = CopyBackupToRegionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cloudhsmv2.model.DestinationBackup] inside the given [block]
*/
public fun destinationBackup(block: aws.sdk.kotlin.services.cloudhsmv2.model.DestinationBackup.Builder.() -> kotlin.Unit) {
this.destinationBackup = aws.sdk.kotlin.services.cloudhsmv2.model.DestinationBackup.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy