commonMain.aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athena-jvm Show documentation
Show all versions of athena-jvm Show documentation
The AWS SDK for Kotlin client for Athena
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.athena.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Statistics such as input rows and bytes read by the query, rows and bytes output by the query, and the number of rows written by the query.
*/
public class QueryRuntimeStatisticsRows private constructor(builder: Builder) {
/**
* The number of bytes read to execute the query.
*/
public val inputBytes: kotlin.Long? = builder.inputBytes
/**
* The number of rows read to execute the query.
*/
public val inputRows: kotlin.Long? = builder.inputRows
/**
* The number of bytes returned by the query.
*/
public val outputBytes: kotlin.Long? = builder.outputBytes
/**
* The number of rows returned by the query.
*/
public val outputRows: kotlin.Long? = builder.outputRows
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QueryRuntimeStatisticsRows(")
append("inputBytes=$inputBytes,")
append("inputRows=$inputRows,")
append("outputBytes=$outputBytes,")
append("outputRows=$outputRows")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputBytes?.hashCode() ?: 0
result = 31 * result + (inputRows?.hashCode() ?: 0)
result = 31 * result + (outputBytes?.hashCode() ?: 0)
result = 31 * result + (outputRows?.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 QueryRuntimeStatisticsRows
if (inputBytes != other.inputBytes) return false
if (inputRows != other.inputRows) return false
if (outputBytes != other.outputBytes) return false
if (outputRows != other.outputRows) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of bytes read to execute the query.
*/
public var inputBytes: kotlin.Long? = null
/**
* The number of rows read to execute the query.
*/
public var inputRows: kotlin.Long? = null
/**
* The number of bytes returned by the query.
*/
public var outputBytes: kotlin.Long? = null
/**
* The number of rows returned by the query.
*/
public var outputRows: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows) : this() {
this.inputBytes = x.inputBytes
this.inputRows = x.inputRows
this.outputBytes = x.outputBytes
this.outputRows = x.outputRows
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows = QueryRuntimeStatisticsRows(this)
internal fun correctErrors(): Builder {
return this
}
}
}