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