
commonMain.aws.sdk.kotlin.services.managedblockchainquery.model.GetTransactionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.managedblockchainquery.model
public class GetTransactionResponse private constructor(builder: Builder) {
/**
* Contains the details of the transaction.
*/
public val transaction: aws.sdk.kotlin.services.managedblockchainquery.model.Transaction? = builder.transaction
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.managedblockchainquery.model.GetTransactionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetTransactionResponse(")
append("transaction=$transaction")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = transaction?.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 GetTransactionResponse
if (transaction != other.transaction) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.managedblockchainquery.model.GetTransactionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Contains the details of the transaction.
*/
public var transaction: aws.sdk.kotlin.services.managedblockchainquery.model.Transaction? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.managedblockchainquery.model.GetTransactionResponse) : this() {
this.transaction = x.transaction
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.managedblockchainquery.model.GetTransactionResponse = GetTransactionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.managedblockchainquery.model.Transaction] inside the given [block]
*/
public fun transaction(block: aws.sdk.kotlin.services.managedblockchainquery.model.Transaction.Builder.() -> kotlin.Unit) {
this.transaction = aws.sdk.kotlin.services.managedblockchainquery.model.Transaction.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy