commonMain.aws.sdk.kotlin.services.qldbsession.model.AbortTransactionResult.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 the details of the aborted transaction.
*/
public class AbortTransactionResult private constructor(builder: Builder) {
/**
* Contains server-side performance information for the command.
*/
public val timingInformation: aws.sdk.kotlin.services.qldbsession.model.TimingInformation? = builder.timingInformation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qldbsession.model.AbortTransactionResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AbortTransactionResult(")
append("timingInformation=$timingInformation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = timingInformation?.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 AbortTransactionResult
if (timingInformation != other.timingInformation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qldbsession.model.AbortTransactionResult = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains server-side performance information for the command.
*/
public var timingInformation: aws.sdk.kotlin.services.qldbsession.model.TimingInformation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qldbsession.model.AbortTransactionResult) : this() {
this.timingInformation = x.timingInformation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qldbsession.model.AbortTransactionResult = AbortTransactionResult(this)
/**
* construct an [aws.sdk.kotlin.services.qldbsession.model.TimingInformation] inside the given [block]
*/
public fun timingInformation(block: aws.sdk.kotlin.services.qldbsession.model.TimingInformation.Builder.() -> kotlin.Unit) {
this.timingInformation = aws.sdk.kotlin.services.qldbsession.model.TimingInformation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}