commonMain.aws.sdk.kotlin.services.medicalimaging.model.MetadataCopies.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
/**
* Contains copiable `Attributes` structure and wraps information related to specific copy use cases. For example, when copying subsets.
*/
public class MetadataCopies private constructor(builder: Builder) {
/**
* The JSON string used to specify a subset of SOP Instances to copy from source to destination image set.
*/
public val copiableAttributes: kotlin.String = requireNotNull(builder.copiableAttributes) { "A non-null value must be provided for copiableAttributes" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.MetadataCopies = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MetadataCopies(")
append("copiableAttributes=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = copiableAttributes.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 MetadataCopies
if (copiableAttributes != other.copiableAttributes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.MetadataCopies = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The JSON string used to specify a subset of SOP Instances to copy from source to destination image set.
*/
public var copiableAttributes: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.MetadataCopies) : this() {
this.copiableAttributes = x.copiableAttributes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.MetadataCopies = MetadataCopies(this)
internal fun correctErrors(): Builder {
if (copiableAttributes == null) copiableAttributes = ""
return this
}
}
}