commonMain.aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medicalimaging.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Copy the destination image set.
*/
public class CopyDestinationImageSet private constructor(builder: Builder) {
/**
* The image set identifier for the destination image set.
*/
public val imageSetId: kotlin.String = requireNotNull(builder.imageSetId) { "A non-null value must be provided for imageSetId" }
/**
* The latest version identifier for the destination image set.
*/
public val latestVersionId: kotlin.String = requireNotNull(builder.latestVersionId) { "A non-null value must be provided for latestVersionId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CopyDestinationImageSet(")
append("imageSetId=$imageSetId,")
append("latestVersionId=$latestVersionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = imageSetId.hashCode()
result = 31 * result + (latestVersionId.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 CopyDestinationImageSet
if (imageSetId != other.imageSetId) return false
if (latestVersionId != other.latestVersionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The image set identifier for the destination image set.
*/
public var imageSetId: kotlin.String? = null
/**
* The latest version identifier for the destination image set.
*/
public var latestVersionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet) : this() {
this.imageSetId = x.imageSetId
this.latestVersionId = x.latestVersionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSet = CopyDestinationImageSet(this)
internal fun correctErrors(): Builder {
if (imageSetId == null) imageSetId = ""
if (latestVersionId == null) latestVersionId = ""
return this
}
}
}