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

commonMain.aws.sdk.kotlin.services.iot.model.JobExecutionSummaryForJob.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iot.model



/**
 * Contains a summary of information about job executions for a specific job.
 */
public class JobExecutionSummaryForJob private constructor(builder: Builder) {
    /**
     * Contains a subset of information about a job execution.
     */
    public val jobExecutionSummary: aws.sdk.kotlin.services.iot.model.JobExecutionSummary? = builder.jobExecutionSummary
    /**
     * The ARN of the thing on which the job execution is running.
     */
    public val thingArn: kotlin.String? = builder.thingArn

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

    override fun toString(): kotlin.String = buildString {
        append("JobExecutionSummaryForJob(")
        append("jobExecutionSummary=$jobExecutionSummary,")
        append("thingArn=$thingArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = jobExecutionSummary?.hashCode() ?: 0
        result = 31 * result + (thingArn?.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 JobExecutionSummaryForJob

        if (jobExecutionSummary != other.jobExecutionSummary) return false
        if (thingArn != other.thingArn) return false

        return true
    }

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

    public class Builder {
        /**
         * Contains a subset of information about a job execution.
         */
        public var jobExecutionSummary: aws.sdk.kotlin.services.iot.model.JobExecutionSummary? = null
        /**
         * The ARN of the thing on which the job execution is running.
         */
        public var thingArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.JobExecutionSummaryForJob) : this() {
            this.jobExecutionSummary = x.jobExecutionSummary
            this.thingArn = x.thingArn
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iot.model.JobExecutionSummary] inside the given [block]
         */
        public fun jobExecutionSummary(block: aws.sdk.kotlin.services.iot.model.JobExecutionSummary.Builder.() -> kotlin.Unit) {
            this.jobExecutionSummary = aws.sdk.kotlin.services.iot.model.JobExecutionSummary.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy