commonMain.aws.sdk.kotlin.services.athena.model.GetCalculationExecutionStatusResponse.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
public class GetCalculationExecutionStatusResponse private constructor(builder: Builder) {
/**
* Contains information about the DPU execution time and progress.
*/
public val statistics: aws.sdk.kotlin.services.athena.model.CalculationStatistics? = builder.statistics
/**
* Contains information about the calculation execution status.
*/
public val status: aws.sdk.kotlin.services.athena.model.CalculationStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.GetCalculationExecutionStatusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCalculationExecutionStatusResponse(")
append("statistics=$statistics,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = statistics?.hashCode() ?: 0
result = 31 * result + (status?.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 GetCalculationExecutionStatusResponse
if (statistics != other.statistics) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.GetCalculationExecutionStatusResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains information about the DPU execution time and progress.
*/
public var statistics: aws.sdk.kotlin.services.athena.model.CalculationStatistics? = null
/**
* Contains information about the calculation execution status.
*/
public var status: aws.sdk.kotlin.services.athena.model.CalculationStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.GetCalculationExecutionStatusResponse) : this() {
this.statistics = x.statistics
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.GetCalculationExecutionStatusResponse = GetCalculationExecutionStatusResponse(this)
/**
* construct an [aws.sdk.kotlin.services.athena.model.CalculationStatistics] inside the given [block]
*/
public fun statistics(block: aws.sdk.kotlin.services.athena.model.CalculationStatistics.Builder.() -> kotlin.Unit) {
this.statistics = aws.sdk.kotlin.services.athena.model.CalculationStatistics.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.athena.model.CalculationStatus] inside the given [block]
*/
public fun status(block: aws.sdk.kotlin.services.athena.model.CalculationStatus.Builder.() -> kotlin.Unit) {
this.status = aws.sdk.kotlin.services.athena.model.CalculationStatus.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}