commonMain.aws.sdk.kotlin.services.glue.model.CrawlerHistory.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 the information for a run of a crawler.
*/
public class CrawlerHistory private constructor(builder: Builder) {
/**
* A UUID identifier for each crawl.
*/
public val crawlId: kotlin.String? = builder.crawlId
/**
* The number of data processing units (DPU) used in hours for the crawl.
*/
public val dpuHour: kotlin.Double = builder.dpuHour
/**
* The date and time on which the crawl ended.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* If an error occurred, the error message associated with the crawl.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The log group associated with the crawl.
*/
public val logGroup: kotlin.String? = builder.logGroup
/**
* The log stream associated with the crawl.
*/
public val logStream: kotlin.String? = builder.logStream
/**
* The prefix for a CloudWatch message about this crawl.
*/
public val messagePrefix: kotlin.String? = builder.messagePrefix
/**
* The date and time on which the crawl started.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The state of the crawl.
*/
public val state: aws.sdk.kotlin.services.glue.model.CrawlerHistoryState? = builder.state
/**
* A run summary for the specific crawl in JSON. Contains the catalog tables and partitions that were added, updated, or deleted.
*/
public val summary: kotlin.String? = builder.summary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CrawlerHistory = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CrawlerHistory(")
append("crawlId=$crawlId,")
append("dpuHour=$dpuHour,")
append("endTime=$endTime,")
append("errorMessage=$errorMessage,")
append("logGroup=$logGroup,")
append("logStream=$logStream,")
append("messagePrefix=$messagePrefix,")
append("startTime=$startTime,")
append("state=$state,")
append("summary=$summary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crawlId?.hashCode() ?: 0
result = 31 * result + (dpuHour.hashCode())
result = 31 * result + (endTime?.hashCode() ?: 0)
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (logGroup?.hashCode() ?: 0)
result = 31 * result + (logStream?.hashCode() ?: 0)
result = 31 * result + (messagePrefix?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (summary?.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 CrawlerHistory
if (crawlId != other.crawlId) return false
if (!(dpuHour?.equals(other.dpuHour) ?: (other.dpuHour == null))) return false
if (endTime != other.endTime) return false
if (errorMessage != other.errorMessage) return false
if (logGroup != other.logGroup) return false
if (logStream != other.logStream) return false
if (messagePrefix != other.messagePrefix) return false
if (startTime != other.startTime) return false
if (state != other.state) return false
if (summary != other.summary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CrawlerHistory = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A UUID identifier for each crawl.
*/
public var crawlId: kotlin.String? = null
/**
* The number of data processing units (DPU) used in hours for the crawl.
*/
public var dpuHour: kotlin.Double = 0.0
/**
* The date and time on which the crawl ended.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* If an error occurred, the error message associated with the crawl.
*/
public var errorMessage: kotlin.String? = null
/**
* The log group associated with the crawl.
*/
public var logGroup: kotlin.String? = null
/**
* The log stream associated with the crawl.
*/
public var logStream: kotlin.String? = null
/**
* The prefix for a CloudWatch message about this crawl.
*/
public var messagePrefix: kotlin.String? = null
/**
* The date and time on which the crawl started.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The state of the crawl.
*/
public var state: aws.sdk.kotlin.services.glue.model.CrawlerHistoryState? = null
/**
* A run summary for the specific crawl in JSON. Contains the catalog tables and partitions that were added, updated, or deleted.
*/
public var summary: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CrawlerHistory) : this() {
this.crawlId = x.crawlId
this.dpuHour = x.dpuHour
this.endTime = x.endTime
this.errorMessage = x.errorMessage
this.logGroup = x.logGroup
this.logStream = x.logStream
this.messagePrefix = x.messagePrefix
this.startTime = x.startTime
this.state = x.state
this.summary = x.summary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CrawlerHistory = CrawlerHistory(this)
internal fun correctErrors(): Builder {
return this
}
}
}