commonMain.aws.sdk.kotlin.services.glue.model.BatchGetJobsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetJobsResponse private constructor(builder: Builder) {
/**
* A list of job definitions.
*/
public val jobs: List? = builder.jobs
/**
* A list of names of jobs not found.
*/
public val jobsNotFound: List? = builder.jobsNotFound
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BatchGetJobsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetJobsResponse(")
append("jobs=$jobs,")
append("jobsNotFound=$jobsNotFound")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobs?.hashCode() ?: 0
result = 31 * result + (jobsNotFound?.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 BatchGetJobsResponse
if (jobs != other.jobs) return false
if (jobsNotFound != other.jobsNotFound) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BatchGetJobsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of job definitions.
*/
public var jobs: List? = null
/**
* A list of names of jobs not found.
*/
public var jobsNotFound: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchGetJobsResponse) : this() {
this.jobs = x.jobs
this.jobsNotFound = x.jobsNotFound
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BatchGetJobsResponse = BatchGetJobsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}