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

commonMain.aws.sdk.kotlin.services.glue.model.Crawl.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The details of a crawl in the workflow.
 */
public class Crawl private constructor(builder: Builder) {
    /**
     * The date and time on which the crawl completed.
     */
    public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
    /**
     * 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 date and time on which the crawl started.
     */
    public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn
    /**
     * The state of the crawler.
     */
    public val state: aws.sdk.kotlin.services.glue.model.CrawlState? = builder.state

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

    override fun toString(): kotlin.String = buildString {
        append("Crawl(")
        append("completedOn=$completedOn,")
        append("errorMessage=$errorMessage,")
        append("logGroup=$logGroup,")
        append("logStream=$logStream,")
        append("startedOn=$startedOn,")
        append("state=$state")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = completedOn?.hashCode() ?: 0
        result = 31 * result + (errorMessage?.hashCode() ?: 0)
        result = 31 * result + (logGroup?.hashCode() ?: 0)
        result = 31 * result + (logStream?.hashCode() ?: 0)
        result = 31 * result + (startedOn?.hashCode() ?: 0)
        result = 31 * result + (state?.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 Crawl

        if (completedOn != other.completedOn) return false
        if (errorMessage != other.errorMessage) return false
        if (logGroup != other.logGroup) return false
        if (logStream != other.logStream) return false
        if (startedOn != other.startedOn) return false
        if (state != other.state) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The date and time on which the crawl completed.
         */
        public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * 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 date and time on which the crawl started.
         */
        public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The state of the crawler.
         */
        public var state: aws.sdk.kotlin.services.glue.model.CrawlState? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.Crawl) : this() {
            this.completedOn = x.completedOn
            this.errorMessage = x.errorMessage
            this.logGroup = x.logGroup
            this.logStream = x.logStream
            this.startedOn = x.startedOn
            this.state = x.state
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy