
commonMain.aws.sdk.kotlin.services.athena.model.GetCalculationExecutionResponse.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 GetCalculationExecutionResponse private constructor(builder: Builder) {
/**
* The calculation execution UUID.
*/
public val calculationExecutionId: kotlin.String? = builder.calculationExecutionId
/**
* The description of the calculation execution.
*/
public val description: kotlin.String? = builder.description
/**
* Contains result information. This field is populated only if the calculation is completed.
*/
public val result: aws.sdk.kotlin.services.athena.model.CalculationResult? = builder.result
/**
* The session ID that the calculation ran in.
*/
public val sessionId: kotlin.String? = builder.sessionId
/**
* Contains information about the data processing unit (DPU) execution time and progress. This field is populated only when statistics are available.
*/
public val statistics: aws.sdk.kotlin.services.athena.model.CalculationStatistics? = builder.statistics
/**
* Contains information about the status of the calculation.
*/
public val status: aws.sdk.kotlin.services.athena.model.CalculationStatus? = builder.status
/**
* The Amazon S3 location in which calculation results are stored.
*/
public val workingDirectory: kotlin.String? = builder.workingDirectory
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.GetCalculationExecutionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCalculationExecutionResponse(")
append("calculationExecutionId=$calculationExecutionId,")
append("description=$description,")
append("result=$result,")
append("sessionId=$sessionId,")
append("statistics=$statistics,")
append("status=$status,")
append("workingDirectory=$workingDirectory")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = calculationExecutionId?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (result?.hashCode() ?: 0)
result = 31 * result + (sessionId?.hashCode() ?: 0)
result = 31 * result + (statistics?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (workingDirectory?.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 GetCalculationExecutionResponse
if (calculationExecutionId != other.calculationExecutionId) return false
if (description != other.description) return false
if (result != other.result) return false
if (sessionId != other.sessionId) return false
if (statistics != other.statistics) return false
if (status != other.status) return false
if (workingDirectory != other.workingDirectory) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.GetCalculationExecutionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The calculation execution UUID.
*/
public var calculationExecutionId: kotlin.String? = null
/**
* The description of the calculation execution.
*/
public var description: kotlin.String? = null
/**
* Contains result information. This field is populated only if the calculation is completed.
*/
public var result: aws.sdk.kotlin.services.athena.model.CalculationResult? = null
/**
* The session ID that the calculation ran in.
*/
public var sessionId: kotlin.String? = null
/**
* Contains information about the data processing unit (DPU) execution time and progress. This field is populated only when statistics are available.
*/
public var statistics: aws.sdk.kotlin.services.athena.model.CalculationStatistics? = null
/**
* Contains information about the status of the calculation.
*/
public var status: aws.sdk.kotlin.services.athena.model.CalculationStatus? = null
/**
* The Amazon S3 location in which calculation results are stored.
*/
public var workingDirectory: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.GetCalculationExecutionResponse) : this() {
this.calculationExecutionId = x.calculationExecutionId
this.description = x.description
this.result = x.result
this.sessionId = x.sessionId
this.statistics = x.statistics
this.status = x.status
this.workingDirectory = x.workingDirectory
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.GetCalculationExecutionResponse = GetCalculationExecutionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.athena.model.CalculationResult] inside the given [block]
*/
public fun result(block: aws.sdk.kotlin.services.athena.model.CalculationResult.Builder.() -> kotlin.Unit) {
this.result = aws.sdk.kotlin.services.athena.model.CalculationResult.invoke(block)
}
/**
* 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
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy