commonMain.aws.sdk.kotlin.services.glue.model.GetJobRunResponse.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 GetJobRunResponse private constructor(builder: Builder) {
/**
* The requested job-run metadata.
*/
public val jobRun: aws.sdk.kotlin.services.glue.model.JobRun? = builder.jobRun
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetJobRunResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetJobRunResponse(")
append("jobRun=$jobRun")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobRun?.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 GetJobRunResponse
if (jobRun != other.jobRun) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetJobRunResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The requested job-run metadata.
*/
public var jobRun: aws.sdk.kotlin.services.glue.model.JobRun? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetJobRunResponse) : this() {
this.jobRun = x.jobRun
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetJobRunResponse = GetJobRunResponse(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.JobRun] inside the given [block]
*/
public fun jobRun(block: aws.sdk.kotlin.services.glue.model.JobRun.Builder.() -> kotlin.Unit) {
this.jobRun = aws.sdk.kotlin.services.glue.model.JobRun.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}