commonMain.aws.sdk.kotlin.services.glue.model.LastCrawlInfo.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
/**
* Status and error information about the most recent crawl.
*/
public class LastCrawlInfo private constructor(builder: Builder) {
/**
* If an error occurred, the error information about the last crawl.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The log group for the last crawl.
*/
public val logGroup: kotlin.String? = builder.logGroup
/**
* The log stream for the last crawl.
*/
public val logStream: kotlin.String? = builder.logStream
/**
* The prefix for a message about this crawl.
*/
public val messagePrefix: kotlin.String? = builder.messagePrefix
/**
* The time at which the crawl started.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* Status of the last crawl.
*/
public val status: aws.sdk.kotlin.services.glue.model.LastCrawlStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.LastCrawlInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LastCrawlInfo(")
append("errorMessage=$errorMessage,")
append("logGroup=$logGroup,")
append("logStream=$logStream,")
append("messagePrefix=$messagePrefix,")
append("startTime=$startTime,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 + (status?.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 LastCrawlInfo
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 (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.LastCrawlInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If an error occurred, the error information about the last crawl.
*/
public var errorMessage: kotlin.String? = null
/**
* The log group for the last crawl.
*/
public var logGroup: kotlin.String? = null
/**
* The log stream for the last crawl.
*/
public var logStream: kotlin.String? = null
/**
* The prefix for a message about this crawl.
*/
public var messagePrefix: kotlin.String? = null
/**
* The time at which the crawl started.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Status of the last crawl.
*/
public var status: aws.sdk.kotlin.services.glue.model.LastCrawlStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.LastCrawlInfo) : this() {
this.errorMessage = x.errorMessage
this.logGroup = x.logGroup
this.logStream = x.logStream
this.messagePrefix = x.messagePrefix
this.startTime = x.startTime
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.LastCrawlInfo = LastCrawlInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}