All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.medicalimaging.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CopyImageSetRequest private constructor(builder: Builder) {
    /**
     * Copy image set information.
     */
    public val copyImageSetInformation: aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation? = builder.copyImageSetInformation
    /**
     * The data store identifier.
     */
    public val datastoreId: kotlin.String? = builder.datastoreId
    /**
     * Setting this flag will force the `CopyImageSet` operation, even if Patient, Study, or Series level metadata are mismatched across the `sourceImageSet` and `destinationImageSet`.
     */
    public val force: kotlin.Boolean? = builder.force
    /**
     * The source image set identifier.
     */
    public val sourceImageSetId: kotlin.String? = builder.sourceImageSetId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CopyImageSetRequest(")
        append("copyImageSetInformation=$copyImageSetInformation,")
        append("datastoreId=$datastoreId,")
        append("force=$force,")
        append("sourceImageSetId=$sourceImageSetId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = copyImageSetInformation?.hashCode() ?: 0
        result = 31 * result + (datastoreId?.hashCode() ?: 0)
        result = 31 * result + (force?.hashCode() ?: 0)
        result = 31 * result + (sourceImageSetId?.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 CopyImageSetRequest

        if (copyImageSetInformation != other.copyImageSetInformation) return false
        if (datastoreId != other.datastoreId) return false
        if (force != other.force) return false
        if (sourceImageSetId != other.sourceImageSetId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Copy image set information.
         */
        public var copyImageSetInformation: aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation? = null
        /**
         * The data store identifier.
         */
        public var datastoreId: kotlin.String? = null
        /**
         * Setting this flag will force the `CopyImageSet` operation, even if Patient, Study, or Series level metadata are mismatched across the `sourceImageSet` and `destinationImageSet`.
         */
        public var force: kotlin.Boolean? = null
        /**
         * The source image set identifier.
         */
        public var sourceImageSetId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetRequest) : this() {
            this.copyImageSetInformation = x.copyImageSetInformation
            this.datastoreId = x.datastoreId
            this.force = x.force
            this.sourceImageSetId = x.sourceImageSetId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetRequest = CopyImageSetRequest(this)

        /**
         * construct an [aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation] inside the given [block]
         */
        public fun copyImageSetInformation(block: aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation.Builder.() -> kotlin.Unit) {
            this.copyImageSetInformation = aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetInformation.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy