commonMain.aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation.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
/**
* Copy image set information.
*/
public class CopyImageSetInformation private constructor(builder: Builder) {
/**
* The destination image set.
*/
public val destinationImageSet: aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet? = builder.destinationImageSet
/**
* The source image set.
*/
public val sourceImageSet: aws.sdk.kotlin.services.medicalimaging.model.CopySourceImageSetInformation? = builder.sourceImageSet
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CopyImageSetInformation(")
append("destinationImageSet=$destinationImageSet,")
append("sourceImageSet=$sourceImageSet")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationImageSet?.hashCode() ?: 0
result = 31 * result + (sourceImageSet?.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 CopyImageSetInformation
if (destinationImageSet != other.destinationImageSet) return false
if (sourceImageSet != other.sourceImageSet) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The destination image set.
*/
public var destinationImageSet: aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet? = null
/**
* The source image set.
*/
public var sourceImageSet: aws.sdk.kotlin.services.medicalimaging.model.CopySourceImageSetInformation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation) : this() {
this.destinationImageSet = x.destinationImageSet
this.sourceImageSet = x.sourceImageSet
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation = CopyImageSetInformation(this)
/**
* construct an [aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet] inside the given [block]
*/
public fun destinationImageSet(block: aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet.Builder.() -> kotlin.Unit) {
this.destinationImageSet = aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.medicalimaging.model.CopySourceImageSetInformation] inside the given [block]
*/
public fun sourceImageSet(block: aws.sdk.kotlin.services.medicalimaging.model.CopySourceImageSetInformation.Builder.() -> kotlin.Unit) {
this.sourceImageSet = aws.sdk.kotlin.services.medicalimaging.model.CopySourceImageSetInformation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy