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

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

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

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



public class GetPendingJobExecutionsResponse private constructor(builder: Builder) {
    /**
     * A list of JobExecutionSummary objects with status IN_PROGRESS.
     */
    public val inProgressJobs: List? = builder.inProgressJobs
    /**
     * A list of JobExecutionSummary objects with status QUEUED.
     */
    public val queuedJobs: List? = builder.queuedJobs

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

    override fun toString(): kotlin.String = buildString {
        append("GetPendingJobExecutionsResponse(")
        append("inProgressJobs=$inProgressJobs,")
        append("queuedJobs=$queuedJobs")
        append(")")
    }

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

        if (inProgressJobs != other.inProgressJobs) return false
        if (queuedJobs != other.queuedJobs) return false

        return true
    }

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

    public class Builder {
        /**
         * A list of JobExecutionSummary objects with status IN_PROGRESS.
         */
        public var inProgressJobs: List? = null
        /**
         * A list of JobExecutionSummary objects with status QUEUED.
         */
        public var queuedJobs: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotjobsdataplane.model.GetPendingJobExecutionsResponse) : this() {
            this.inProgressJobs = x.inProgressJobs
            this.queuedJobs = x.queuedJobs
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy