commonMain.aws.sdk.kotlin.services.qldbsession.model.TimingInformation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qldbsession-jvm Show documentation
Show all versions of qldbsession-jvm Show documentation
The AWS SDK for Kotlin client for QLDB Session
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qldbsession.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains server-side performance information for a command. Amazon QLDB captures timing information between the times when it receives the request and when it sends the corresponding response.
*/
public class TimingInformation private constructor(builder: Builder) {
/**
* The amount of time that QLDB spent on processing the command, measured in milliseconds.
*/
public val processingTimeMilliseconds: kotlin.Long = builder.processingTimeMilliseconds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qldbsession.model.TimingInformation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TimingInformation(")
append("processingTimeMilliseconds=$processingTimeMilliseconds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = processingTimeMilliseconds.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 TimingInformation
if (processingTimeMilliseconds != other.processingTimeMilliseconds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qldbsession.model.TimingInformation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The amount of time that QLDB spent on processing the command, measured in milliseconds.
*/
public var processingTimeMilliseconds: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qldbsession.model.TimingInformation) : this() {
this.processingTimeMilliseconds = x.processingTimeMilliseconds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qldbsession.model.TimingInformation = TimingInformation(this)
internal fun correctErrors(): Builder {
return this
}
}
}