commonMain.aws.sdk.kotlin.services.glue.model.CrawlerMetrics.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 a specified crawler.
*/
public class CrawlerMetrics private constructor(builder: Builder) {
/**
* The name of the crawler.
*/
public val crawlerName: kotlin.String? = builder.crawlerName
/**
* The duration of the crawler's most recent run, in seconds.
*/
public val lastRuntimeSeconds: kotlin.Double = builder.lastRuntimeSeconds
/**
* The median duration of this crawler's runs, in seconds.
*/
public val medianRuntimeSeconds: kotlin.Double = builder.medianRuntimeSeconds
/**
* True if the crawler is still estimating how long it will take to complete this run.
*/
public val stillEstimating: kotlin.Boolean = builder.stillEstimating
/**
* The number of tables created by this crawler.
*/
public val tablesCreated: kotlin.Int = builder.tablesCreated
/**
* The number of tables deleted by this crawler.
*/
public val tablesDeleted: kotlin.Int = builder.tablesDeleted
/**
* The number of tables updated by this crawler.
*/
public val tablesUpdated: kotlin.Int = builder.tablesUpdated
/**
* The estimated time left to complete a running crawl.
*/
public val timeLeftSeconds: kotlin.Double = builder.timeLeftSeconds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CrawlerMetrics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CrawlerMetrics(")
append("crawlerName=$crawlerName,")
append("lastRuntimeSeconds=$lastRuntimeSeconds,")
append("medianRuntimeSeconds=$medianRuntimeSeconds,")
append("stillEstimating=$stillEstimating,")
append("tablesCreated=$tablesCreated,")
append("tablesDeleted=$tablesDeleted,")
append("tablesUpdated=$tablesUpdated,")
append("timeLeftSeconds=$timeLeftSeconds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crawlerName?.hashCode() ?: 0
result = 31 * result + (lastRuntimeSeconds.hashCode())
result = 31 * result + (medianRuntimeSeconds.hashCode())
result = 31 * result + (stillEstimating.hashCode())
result = 31 * result + (tablesCreated)
result = 31 * result + (tablesDeleted)
result = 31 * result + (tablesUpdated)
result = 31 * result + (timeLeftSeconds.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 CrawlerMetrics
if (crawlerName != other.crawlerName) return false
if (!(lastRuntimeSeconds?.equals(other.lastRuntimeSeconds) ?: (other.lastRuntimeSeconds == null))) return false
if (!(medianRuntimeSeconds?.equals(other.medianRuntimeSeconds) ?: (other.medianRuntimeSeconds == null))) return false
if (stillEstimating != other.stillEstimating) return false
if (tablesCreated != other.tablesCreated) return false
if (tablesDeleted != other.tablesDeleted) return false
if (tablesUpdated != other.tablesUpdated) return false
if (!(timeLeftSeconds?.equals(other.timeLeftSeconds) ?: (other.timeLeftSeconds == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CrawlerMetrics = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the crawler.
*/
public var crawlerName: kotlin.String? = null
/**
* The duration of the crawler's most recent run, in seconds.
*/
public var lastRuntimeSeconds: kotlin.Double = 0.0
/**
* The median duration of this crawler's runs, in seconds.
*/
public var medianRuntimeSeconds: kotlin.Double = 0.0
/**
* True if the crawler is still estimating how long it will take to complete this run.
*/
public var stillEstimating: kotlin.Boolean = false
/**
* The number of tables created by this crawler.
*/
public var tablesCreated: kotlin.Int = 0
/**
* The number of tables deleted by this crawler.
*/
public var tablesDeleted: kotlin.Int = 0
/**
* The number of tables updated by this crawler.
*/
public var tablesUpdated: kotlin.Int = 0
/**
* The estimated time left to complete a running crawl.
*/
public var timeLeftSeconds: kotlin.Double = 0.0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CrawlerMetrics) : this() {
this.crawlerName = x.crawlerName
this.lastRuntimeSeconds = x.lastRuntimeSeconds
this.medianRuntimeSeconds = x.medianRuntimeSeconds
this.stillEstimating = x.stillEstimating
this.tablesCreated = x.tablesCreated
this.tablesDeleted = x.tablesDeleted
this.tablesUpdated = x.tablesUpdated
this.timeLeftSeconds = x.timeLeftSeconds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CrawlerMetrics = CrawlerMetrics(this)
internal fun correctErrors(): Builder {
return this
}
}
}