
commonMain.aws.sdk.kotlin.services.mgn.model.DataReplicationInfoReplicatedDisk.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
/**
* Request to query disks replicated.
*/
class DataReplicationInfoReplicatedDisk private constructor(builder: Builder) {
/**
* Request to query data replication backlog size in bytes.
*/
val backloggedStorageBytes: kotlin.Long = builder.backloggedStorageBytes
/**
* Request to query device name.
*/
val deviceName: kotlin.String? = builder.deviceName
/**
* Request to query amount of data replicated in bytes.
*/
val replicatedStorageBytes: kotlin.Long = builder.replicatedStorageBytes
/**
* Request to query amount of data rescanned in bytes.
*/
val rescannedStorageBytes: kotlin.Long = builder.rescannedStorageBytes
/**
* Request to query total amount of data replicated in bytes.
*/
val totalStorageBytes: kotlin.Long = builder.totalStorageBytes
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.DataReplicationInfoReplicatedDisk = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataReplicationInfoReplicatedDisk(")
append("backloggedStorageBytes=$backloggedStorageBytes,")
append("deviceName=$deviceName,")
append("replicatedStorageBytes=$replicatedStorageBytes,")
append("rescannedStorageBytes=$rescannedStorageBytes,")
append("totalStorageBytes=$totalStorageBytes)")
}
override fun hashCode(): kotlin.Int {
var result = backloggedStorageBytes.hashCode()
result = 31 * result + (deviceName?.hashCode() ?: 0)
result = 31 * result + (replicatedStorageBytes.hashCode())
result = 31 * result + (rescannedStorageBytes.hashCode())
result = 31 * result + (totalStorageBytes.hashCode())
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 DataReplicationInfoReplicatedDisk
if (backloggedStorageBytes != other.backloggedStorageBytes) return false
if (deviceName != other.deviceName) return false
if (replicatedStorageBytes != other.replicatedStorageBytes) return false
if (rescannedStorageBytes != other.rescannedStorageBytes) return false
if (totalStorageBytes != other.totalStorageBytes) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.DataReplicationInfoReplicatedDisk = Builder(this).apply(block).build()
class Builder {
/**
* Request to query data replication backlog size in bytes.
*/
var backloggedStorageBytes: kotlin.Long = 0L
/**
* Request to query device name.
*/
var deviceName: kotlin.String? = null
/**
* Request to query amount of data replicated in bytes.
*/
var replicatedStorageBytes: kotlin.Long = 0L
/**
* Request to query amount of data rescanned in bytes.
*/
var rescannedStorageBytes: kotlin.Long = 0L
/**
* Request to query total amount of data replicated in bytes.
*/
var totalStorageBytes: kotlin.Long = 0L
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.DataReplicationInfoReplicatedDisk) : this() {
this.backloggedStorageBytes = x.backloggedStorageBytes
this.deviceName = x.deviceName
this.replicatedStorageBytes = x.replicatedStorageBytes
this.rescannedStorageBytes = x.rescannedStorageBytes
this.totalStorageBytes = x.totalStorageBytes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.DataReplicationInfoReplicatedDisk = DataReplicationInfoReplicatedDisk(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy