commonMain.aws.sdk.kotlin.services.medicalimaging.model.GetDicomImportJobResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of medicalimaging-jvm Show documentation
Show all versions of medicalimaging-jvm Show documentation
The AWS SDK for Kotlin client for Medical Imaging
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medicalimaging.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetDicomImportJobResponse private constructor(builder: Builder) {
/**
* The properties of the import job.
*/
public val jobProperties: aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties? = builder.jobProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.GetDicomImportJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDicomImportJobResponse(")
append("jobProperties=$jobProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobProperties?.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 GetDicomImportJobResponse
if (jobProperties != other.jobProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.GetDicomImportJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The properties of the import job.
*/
public var jobProperties: aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.GetDicomImportJobResponse) : this() {
this.jobProperties = x.jobProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.GetDicomImportJobResponse = GetDicomImportJobResponse(this)
/**
* construct an [aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties] inside the given [block]
*/
public fun jobProperties(block: aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties.Builder.() -> kotlin.Unit) {
this.jobProperties = aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}