commonMain.aws.sdk.kotlin.services.datasync.model.Latency.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 latency peaks for an on-premises storage system resource. Each data point represents the 95th percentile peak value during a 1-hour interval.
*/
public class Latency private constructor(builder: Builder) {
/**
* Peak latency for operations unrelated to read and write operations.
*/
public val other: kotlin.Double? = builder.other
/**
* Peak latency for read operations.
*/
public val read: kotlin.Double? = builder.read
/**
* Peak latency for write operations.
*/
public val write: kotlin.Double? = builder.write
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.Latency = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Latency(")
append("other=$other,")
append("read=$read,")
append("write=$write")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = other?.hashCode() ?: 0
result = 31 * result + (read?.hashCode() ?: 0)
result = 31 * result + (write?.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 Latency
if (!(other?.equals(other.other) ?: (other.other == null))) return false
if (!(read?.equals(other.read) ?: (other.read == null))) return false
if (!(write?.equals(other.write) ?: (other.write == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.Latency = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Peak latency for operations unrelated to read and write operations.
*/
public var other: kotlin.Double? = null
/**
* Peak latency for read operations.
*/
public var read: kotlin.Double? = null
/**
* Peak latency for write operations.
*/
public var write: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.Latency) : this() {
this.other = x.other
this.read = x.read
this.write = x.write
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.Latency = Latency(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy