commonMain.aws.sdk.kotlin.services.glue.model.ExecutionAttempt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* A run attempt for a column statistics task run.
*/
public class ExecutionAttempt private constructor(builder: Builder) {
/**
* A task run ID for the last column statistics task run.
*/
public val columnStatisticsTaskRunId: kotlin.String? = builder.columnStatisticsTaskRunId
/**
* An error message associated with the last column statistics task run.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* A timestamp when the last column statistics task run occurred.
*/
public val executionTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.executionTimestamp
/**
* The status of the last column statistics task run.
*/
public val status: aws.sdk.kotlin.services.glue.model.ExecutionStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.ExecutionAttempt = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecutionAttempt(")
append("columnStatisticsTaskRunId=$columnStatisticsTaskRunId,")
append("errorMessage=$errorMessage,")
append("executionTimestamp=$executionTimestamp,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columnStatisticsTaskRunId?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (executionTimestamp?.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 ExecutionAttempt
if (columnStatisticsTaskRunId != other.columnStatisticsTaskRunId) return false
if (errorMessage != other.errorMessage) return false
if (executionTimestamp != other.executionTimestamp) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ExecutionAttempt = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A task run ID for the last column statistics task run.
*/
public var columnStatisticsTaskRunId: kotlin.String? = null
/**
* An error message associated with the last column statistics task run.
*/
public var errorMessage: kotlin.String? = null
/**
* A timestamp when the last column statistics task run occurred.
*/
public var executionTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the last column statistics task run.
*/
public var status: aws.sdk.kotlin.services.glue.model.ExecutionStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.ExecutionAttempt) : this() {
this.columnStatisticsTaskRunId = x.columnStatisticsTaskRunId
this.errorMessage = x.errorMessage
this.executionTimestamp = x.executionTimestamp
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.ExecutionAttempt = ExecutionAttempt(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy