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

commonMain.aws.sdk.kotlin.services.iotjobsdataplane.model.JobExecutionSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotjobsdataplane.model



/**
 * Contains a subset of information about a job execution.
 */
public class JobExecutionSummary private constructor(builder: Builder) {
    /**
     * A number that identifies a particular job execution on a particular device.
     */
    public val executionNumber: kotlin.Long? = builder.executionNumber
    /**
     * The unique identifier you assigned to this job when it was created.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * The time, in milliseconds since the epoch, when the job execution was last updated.
     */
    public val lastUpdatedAt: kotlin.Long = builder.lastUpdatedAt
    /**
     * The time, in milliseconds since the epoch, when the job execution was enqueued.
     */
    public val queuedAt: kotlin.Long = builder.queuedAt
    /**
     * The time, in milliseconds since the epoch, when the job execution started.
     */
    public val startedAt: kotlin.Long? = builder.startedAt
    /**
     * The version of the job execution. Job execution versions are incremented each time AWS IoT Jobs receives an update from a device.
     */
    public val versionNumber: kotlin.Long = builder.versionNumber

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

    override fun toString(): kotlin.String = buildString {
        append("JobExecutionSummary(")
        append("executionNumber=$executionNumber,")
        append("jobId=$jobId,")
        append("lastUpdatedAt=$lastUpdatedAt,")
        append("queuedAt=$queuedAt,")
        append("startedAt=$startedAt,")
        append("versionNumber=$versionNumber")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = executionNumber?.hashCode() ?: 0
        result = 31 * result + (jobId?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedAt.hashCode())
        result = 31 * result + (queuedAt.hashCode())
        result = 31 * result + (startedAt?.hashCode() ?: 0)
        result = 31 * result + (versionNumber.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 JobExecutionSummary

        if (executionNumber != other.executionNumber) return false
        if (jobId != other.jobId) return false
        if (lastUpdatedAt != other.lastUpdatedAt) return false
        if (queuedAt != other.queuedAt) return false
        if (startedAt != other.startedAt) return false
        if (versionNumber != other.versionNumber) return false

        return true
    }

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

    public class Builder {
        /**
         * A number that identifies a particular job execution on a particular device.
         */
        public var executionNumber: kotlin.Long? = null
        /**
         * The unique identifier you assigned to this job when it was created.
         */
        public var jobId: kotlin.String? = null
        /**
         * The time, in milliseconds since the epoch, when the job execution was last updated.
         */
        public var lastUpdatedAt: kotlin.Long = 0L
        /**
         * The time, in milliseconds since the epoch, when the job execution was enqueued.
         */
        public var queuedAt: kotlin.Long = 0L
        /**
         * The time, in milliseconds since the epoch, when the job execution started.
         */
        public var startedAt: kotlin.Long? = null
        /**
         * The version of the job execution. Job execution versions are incremented each time AWS IoT Jobs receives an update from a device.
         */
        public var versionNumber: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotjobsdataplane.model.JobExecutionSummary) : this() {
            this.executionNumber = x.executionNumber
            this.jobId = x.jobId
            this.lastUpdatedAt = x.lastUpdatedAt
            this.queuedAt = x.queuedAt
            this.startedAt = x.startedAt
            this.versionNumber = x.versionNumber
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy