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

commonMain.aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetResponse.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 CopyImageSetResponse private constructor(builder: Builder) {
    /**
     * The data store identifier.
     */
    public val datastoreId: kotlin.String = requireNotNull(builder.datastoreId) { "A non-null value must be provided for datastoreId" }
    /**
     * The properties of the destination image set.
     */
    public val destinationImageSetProperties: aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSetProperties? = builder.destinationImageSetProperties
    /**
     * The properties of the source image set.
     */
    public val sourceImageSetProperties: aws.sdk.kotlin.services.medicalimaging.model.CopySourceImageSetProperties? = builder.sourceImageSetProperties

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

    override fun toString(): kotlin.String = buildString {
        append("CopyImageSetResponse(")
        append("datastoreId=$datastoreId,")
        append("destinationImageSetProperties=$destinationImageSetProperties,")
        append("sourceImageSetProperties=$sourceImageSetProperties")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = datastoreId.hashCode()
        result = 31 * result + (destinationImageSetProperties?.hashCode() ?: 0)
        result = 31 * result + (sourceImageSetProperties?.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 CopyImageSetResponse

        if (datastoreId != other.datastoreId) return false
        if (destinationImageSetProperties != other.destinationImageSetProperties) return false
        if (sourceImageSetProperties != other.sourceImageSetProperties) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The data store identifier.
         */
        public var datastoreId: kotlin.String? = null
        /**
         * The properties of the destination image set.
         */
        public var destinationImageSetProperties: aws.sdk.kotlin.services.medicalimaging.model.CopyDestinationImageSetProperties? = null
        /**
         * The properties of the source image set.
         */
        public var sourceImageSetProperties: aws.sdk.kotlin.services.medicalimaging.model.CopySourceImageSetProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.CopyImageSetResponse) : this() {
            this.datastoreId = x.datastoreId
            this.destinationImageSetProperties = x.destinationImageSetProperties
            this.sourceImageSetProperties = x.sourceImageSetProperties
        }

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

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

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

        internal fun correctErrors(): Builder {
            if (datastoreId == null) datastoreId = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy