commonMain.aws.sdk.kotlin.services.glue.model.TableOptimizerRun.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
/**
* Contains details for a table optimizer run.
*/
public class TableOptimizerRun private constructor(builder: Builder) {
/**
* A `CompactionMetrics` object containing metrics for the optimizer run.
*/
public val compactionMetrics: aws.sdk.kotlin.services.glue.model.CompactionMetrics? = builder.compactionMetrics
/**
* Represents the epoch timestamp at which the compaction job ended.
*/
public val endTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.endTimestamp
/**
* An error that occured during the optimizer run.
*/
public val error: kotlin.String? = builder.error
/**
* An event type representing the status of the table optimizer run.
*/
public val eventType: aws.sdk.kotlin.services.glue.model.TableOptimizerEventType? = builder.eventType
/**
* A `RunMetrics` object containing metrics for the optimizer run.
*
* This member is deprecated. See the individual metric members for compaction, retention, and orphan file deletion.
*/
@Deprecated("Metrics has been replaced by optimizer type specific metrics such as IcebergCompactionMetrics")
public val metrics: aws.sdk.kotlin.services.glue.model.RunMetrics? = builder.metrics
/**
* An `OrphanFileDeletionMetrics` object containing metrics for the optimizer run.
*/
public val orphanFileDeletionMetrics: aws.sdk.kotlin.services.glue.model.OrphanFileDeletionMetrics? = builder.orphanFileDeletionMetrics
/**
* A `RetentionMetrics` object containing metrics for the optimizer run.
*/
public val retentionMetrics: aws.sdk.kotlin.services.glue.model.RetentionMetrics? = builder.retentionMetrics
/**
* Represents the epoch timestamp at which the compaction job was started within Lake Formation.
*/
public val startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.startTimestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.TableOptimizerRun = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TableOptimizerRun(")
append("compactionMetrics=$compactionMetrics,")
append("endTimestamp=$endTimestamp,")
append("error=$error,")
append("eventType=$eventType,")
append("metrics=$metrics,")
append("orphanFileDeletionMetrics=$orphanFileDeletionMetrics,")
append("retentionMetrics=$retentionMetrics,")
append("startTimestamp=$startTimestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = compactionMetrics?.hashCode() ?: 0
result = 31 * result + (endTimestamp?.hashCode() ?: 0)
result = 31 * result + (error?.hashCode() ?: 0)
result = 31 * result + (eventType?.hashCode() ?: 0)
result = 31 * result + (metrics?.hashCode() ?: 0)
result = 31 * result + (orphanFileDeletionMetrics?.hashCode() ?: 0)
result = 31 * result + (retentionMetrics?.hashCode() ?: 0)
result = 31 * result + (startTimestamp?.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 TableOptimizerRun
if (compactionMetrics != other.compactionMetrics) return false
if (endTimestamp != other.endTimestamp) return false
if (error != other.error) return false
if (eventType != other.eventType) return false
if (metrics != other.metrics) return false
if (orphanFileDeletionMetrics != other.orphanFileDeletionMetrics) return false
if (retentionMetrics != other.retentionMetrics) return false
if (startTimestamp != other.startTimestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.TableOptimizerRun = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A `CompactionMetrics` object containing metrics for the optimizer run.
*/
public var compactionMetrics: aws.sdk.kotlin.services.glue.model.CompactionMetrics? = null
/**
* Represents the epoch timestamp at which the compaction job ended.
*/
public var endTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* An error that occured during the optimizer run.
*/
public var error: kotlin.String? = null
/**
* An event type representing the status of the table optimizer run.
*/
public var eventType: aws.sdk.kotlin.services.glue.model.TableOptimizerEventType? = null
/**
* A `RunMetrics` object containing metrics for the optimizer run.
*
* This member is deprecated. See the individual metric members for compaction, retention, and orphan file deletion.
*/
@Deprecated("Metrics has been replaced by optimizer type specific metrics such as IcebergCompactionMetrics")
public var metrics: aws.sdk.kotlin.services.glue.model.RunMetrics? = null
/**
* An `OrphanFileDeletionMetrics` object containing metrics for the optimizer run.
*/
public var orphanFileDeletionMetrics: aws.sdk.kotlin.services.glue.model.OrphanFileDeletionMetrics? = null
/**
* A `RetentionMetrics` object containing metrics for the optimizer run.
*/
public var retentionMetrics: aws.sdk.kotlin.services.glue.model.RetentionMetrics? = null
/**
* Represents the epoch timestamp at which the compaction job was started within Lake Formation.
*/
public var startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.TableOptimizerRun) : this() {
this.compactionMetrics = x.compactionMetrics
this.endTimestamp = x.endTimestamp
this.error = x.error
this.eventType = x.eventType
this.metrics = x.metrics
this.orphanFileDeletionMetrics = x.orphanFileDeletionMetrics
this.retentionMetrics = x.retentionMetrics
this.startTimestamp = x.startTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.TableOptimizerRun = TableOptimizerRun(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.CompactionMetrics] inside the given [block]
*/
public fun compactionMetrics(block: aws.sdk.kotlin.services.glue.model.CompactionMetrics.Builder.() -> kotlin.Unit) {
this.compactionMetrics = aws.sdk.kotlin.services.glue.model.CompactionMetrics.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.RunMetrics] inside the given [block]
*/
@Deprecated("Metrics has been replaced by optimizer type specific metrics such as IcebergCompactionMetrics")
public fun metrics(block: aws.sdk.kotlin.services.glue.model.RunMetrics.Builder.() -> kotlin.Unit) {
this.metrics = aws.sdk.kotlin.services.glue.model.RunMetrics.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.OrphanFileDeletionMetrics] inside the given [block]
*/
public fun orphanFileDeletionMetrics(block: aws.sdk.kotlin.services.glue.model.OrphanFileDeletionMetrics.Builder.() -> kotlin.Unit) {
this.orphanFileDeletionMetrics = aws.sdk.kotlin.services.glue.model.OrphanFileDeletionMetrics.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.RetentionMetrics] inside the given [block]
*/
public fun retentionMetrics(block: aws.sdk.kotlin.services.glue.model.RetentionMetrics.Builder.() -> kotlin.Unit) {
this.retentionMetrics = aws.sdk.kotlin.services.glue.model.RetentionMetrics.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}