commonMain.aws.sdk.kotlin.services.glue.model.RunMetrics.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
/**
* Metrics for the optimizer run.
*
* This structure is deprecated. See the individual metric members for compaction, retention, and orphan file deletion.
*/
public class RunMetrics private constructor(builder: Builder) {
/**
* The duration of the job in hours.
*/
public val jobDurationInHour: kotlin.String? = builder.jobDurationInHour
/**
* The number of bytes removed by the compaction job run.
*/
public val numberOfBytesCompacted: kotlin.String? = builder.numberOfBytesCompacted
/**
* The number of DPU hours consumed by the job.
*/
public val numberOfDpus: kotlin.String? = builder.numberOfDpus
/**
* The number of files removed by the compaction job run.
*/
public val numberOfFilesCompacted: kotlin.String? = builder.numberOfFilesCompacted
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.RunMetrics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RunMetrics(")
append("jobDurationInHour=$jobDurationInHour,")
append("numberOfBytesCompacted=$numberOfBytesCompacted,")
append("numberOfDpus=$numberOfDpus,")
append("numberOfFilesCompacted=$numberOfFilesCompacted")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobDurationInHour?.hashCode() ?: 0
result = 31 * result + (numberOfBytesCompacted?.hashCode() ?: 0)
result = 31 * result + (numberOfDpus?.hashCode() ?: 0)
result = 31 * result + (numberOfFilesCompacted?.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 RunMetrics
if (jobDurationInHour != other.jobDurationInHour) return false
if (numberOfBytesCompacted != other.numberOfBytesCompacted) return false
if (numberOfDpus != other.numberOfDpus) return false
if (numberOfFilesCompacted != other.numberOfFilesCompacted) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.RunMetrics = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The duration of the job in hours.
*/
public var jobDurationInHour: kotlin.String? = null
/**
* The number of bytes removed by the compaction job run.
*/
public var numberOfBytesCompacted: kotlin.String? = null
/**
* The number of DPU hours consumed by the job.
*/
public var numberOfDpus: kotlin.String? = null
/**
* The number of files removed by the compaction job run.
*/
public var numberOfFilesCompacted: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.RunMetrics) : this() {
this.jobDurationInHour = x.jobDurationInHour
this.numberOfBytesCompacted = x.numberOfBytesCompacted
this.numberOfDpus = x.numberOfDpus
this.numberOfFilesCompacted = x.numberOfFilesCompacted
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.RunMetrics = RunMetrics(this)
internal fun correctErrors(): Builder {
return this
}
}
}