commonMain.aws.sdk.kotlin.services.deadline.model.BatchGetJobEntityResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetJobEntityResponse private constructor(builder: Builder) {
/**
* A list of the job entities, or details, in the batch.
*/
public val entities: List = requireNotNull(builder.entities) { "A non-null value must be provided for entities" }
/**
* A list of errors from the job error logs for the batch.
*/
public val errors: List = requireNotNull(builder.errors) { "A non-null value must be provided for errors" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.BatchGetJobEntityResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetJobEntityResponse(")
append("entities=$entities,")
append("errors=$errors")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = entities.hashCode()
result = 31 * result + (errors.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 BatchGetJobEntityResponse
if (entities != other.entities) return false
if (errors != other.errors) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.BatchGetJobEntityResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of the job entities, or details, in the batch.
*/
public var entities: List? = null
/**
* A list of errors from the job error logs for the batch.
*/
public var errors: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.BatchGetJobEntityResponse) : this() {
this.entities = x.entities
this.errors = x.errors
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.BatchGetJobEntityResponse = BatchGetJobEntityResponse(this)
internal fun correctErrors(): Builder {
if (entities == null) entities = emptyList()
if (errors == null) errors = emptyList()
return this
}
}
}