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

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

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

public class UpdateImageSetMetadataRequest private constructor(builder: Builder) {
    /**
     * The data store identifier.
     */
    public val datastoreId: kotlin.String? = builder.datastoreId
    /**
     * Setting this flag will force the `UpdateImageSetMetadata` operation for the following attributes:
     * + `Tag.StudyInstanceUID`, `Tag.SeriesInstanceUID`, `Tag.SOPInstanceUID`, and `Tag.StudyID`
     * + Adding, removing, or updating private tags for an individual SOP Instance
     */
    public val force: kotlin.Boolean? = builder.force
    /**
     * The image set identifier.
     */
    public val imageSetId: kotlin.String? = builder.imageSetId
    /**
     * The latest image set version identifier.
     */
    public val latestVersionId: kotlin.String? = builder.latestVersionId
    /**
     * Update image set metadata updates.
     */
    public val updateImageSetMetadataUpdates: aws.sdk.kotlin.services.medicalimaging.model.MetadataUpdates? = builder.updateImageSetMetadataUpdates

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateImageSetMetadataRequest(")
        append("datastoreId=$datastoreId,")
        append("force=$force,")
        append("imageSetId=$imageSetId,")
        append("latestVersionId=$latestVersionId,")
        append("updateImageSetMetadataUpdates=$updateImageSetMetadataUpdates")
        append(")")
    }

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

        if (datastoreId != other.datastoreId) return false
        if (force != other.force) return false
        if (imageSetId != other.imageSetId) return false
        if (latestVersionId != other.latestVersionId) return false
        if (updateImageSetMetadataUpdates != other.updateImageSetMetadataUpdates) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The data store identifier.
         */
        public var datastoreId: kotlin.String? = null
        /**
         * Setting this flag will force the `UpdateImageSetMetadata` operation for the following attributes:
         * + `Tag.StudyInstanceUID`, `Tag.SeriesInstanceUID`, `Tag.SOPInstanceUID`, and `Tag.StudyID`
         * + Adding, removing, or updating private tags for an individual SOP Instance
         */
        public var force: kotlin.Boolean? = null
        /**
         * The image set identifier.
         */
        public var imageSetId: kotlin.String? = null
        /**
         * The latest image set version identifier.
         */
        public var latestVersionId: kotlin.String? = null
        /**
         * Update image set metadata updates.
         */
        public var updateImageSetMetadataUpdates: aws.sdk.kotlin.services.medicalimaging.model.MetadataUpdates? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.UpdateImageSetMetadataRequest) : this() {
            this.datastoreId = x.datastoreId
            this.force = x.force
            this.imageSetId = x.imageSetId
            this.latestVersionId = x.latestVersionId
            this.updateImageSetMetadataUpdates = x.updateImageSetMetadataUpdates
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy