All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.model.IcebergOrphanFileDeletionMetrics.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Orphan file deletion metrics for Iceberg for the optimizer run.
 */
public class IcebergOrphanFileDeletionMetrics private constructor(builder: Builder) {
    /**
     * The duration of the job in hours.
     */
    public val jobDurationInHour: kotlin.Double = builder.jobDurationInHour
    /**
     * The number of DPU hours consumed by the job.
     */
    public val numberOfDpus: kotlin.Int = builder.numberOfDpus
    /**
     * The number of orphan files deleted by the orphan file deletion job run.
     */
    public val numberOfOrphanFilesDeleted: kotlin.Long = builder.numberOfOrphanFilesDeleted

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.IcebergOrphanFileDeletionMetrics = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("IcebergOrphanFileDeletionMetrics(")
        append("jobDurationInHour=$jobDurationInHour,")
        append("numberOfDpus=$numberOfDpus,")
        append("numberOfOrphanFilesDeleted=$numberOfOrphanFilesDeleted")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = jobDurationInHour.hashCode()
        result = 31 * result + (numberOfDpus)
        result = 31 * result + (numberOfOrphanFilesDeleted.hashCode())
        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 IcebergOrphanFileDeletionMetrics

        if (!(jobDurationInHour?.equals(other.jobDurationInHour) ?: (other.jobDurationInHour == null))) return false
        if (numberOfDpus != other.numberOfDpus) return false
        if (numberOfOrphanFilesDeleted != other.numberOfOrphanFilesDeleted) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.IcebergOrphanFileDeletionMetrics = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The duration of the job in hours.
         */
        public var jobDurationInHour: kotlin.Double = 0.0
        /**
         * The number of DPU hours consumed by the job.
         */
        public var numberOfDpus: kotlin.Int = 0
        /**
         * The number of orphan files deleted by the orphan file deletion job run.
         */
        public var numberOfOrphanFilesDeleted: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.IcebergOrphanFileDeletionMetrics) : this() {
            this.jobDurationInHour = x.jobDurationInHour
            this.numberOfDpus = x.numberOfDpus
            this.numberOfOrphanFilesDeleted = x.numberOfOrphanFilesDeleted
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.glue.model.IcebergOrphanFileDeletionMetrics = IcebergOrphanFileDeletionMetrics(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy