commonMain.aws.sdk.kotlin.services.datasync.model.Capacity.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datasync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The storage capacity of an on-premises storage system resource (for example, a volume).
*/
public class Capacity private constructor(builder: Builder) {
/**
* The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).
*/
public val clusterCloudStorageUsed: kotlin.Long? = builder.clusterCloudStorageUsed
/**
* The amount of space that's being used in a storage system resource without accounting for compression or deduplication.
*/
public val logicalUsed: kotlin.Long? = builder.logicalUsed
/**
* The total amount of space available in a storage system resource.
*/
public val provisioned: kotlin.Long? = builder.provisioned
/**
* The amount of space that's being used in a storage system resource.
*/
public val used: kotlin.Long? = builder.used
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.Capacity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Capacity(")
append("clusterCloudStorageUsed=$clusterCloudStorageUsed,")
append("logicalUsed=$logicalUsed,")
append("provisioned=$provisioned,")
append("used=$used")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterCloudStorageUsed?.hashCode() ?: 0
result = 31 * result + (logicalUsed?.hashCode() ?: 0)
result = 31 * result + (provisioned?.hashCode() ?: 0)
result = 31 * result + (used?.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 Capacity
if (clusterCloudStorageUsed != other.clusterCloudStorageUsed) return false
if (logicalUsed != other.logicalUsed) return false
if (provisioned != other.provisioned) return false
if (used != other.used) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.Capacity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).
*/
public var clusterCloudStorageUsed: kotlin.Long? = null
/**
* The amount of space that's being used in a storage system resource without accounting for compression or deduplication.
*/
public var logicalUsed: kotlin.Long? = null
/**
* The total amount of space available in a storage system resource.
*/
public var provisioned: kotlin.Long? = null
/**
* The amount of space that's being used in a storage system resource.
*/
public var used: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.Capacity) : this() {
this.clusterCloudStorageUsed = x.clusterCloudStorageUsed
this.logicalUsed = x.logicalUsed
this.provisioned = x.provisioned
this.used = x.used
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.Capacity = Capacity(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy