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

commonMain.aws.sdk.kotlin.services.medicalimaging.model.GetImageSetMetadataResponse.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
import aws.smithy.kotlin.runtime.content.ByteStream

public class GetImageSetMetadataResponse private constructor(builder: Builder) {
    /**
     * The compression format in which image set metadata attributes are returned.
     */
    public val contentEncoding: kotlin.String? = builder.contentEncoding
    /**
     * The format in which the study metadata is returned to the customer. Default is `text/plain`.
     */
    public val contentType: kotlin.String? = builder.contentType
    /**
     * The blob containing the aggregated metadata information for the image set.
     */
    public val imageSetMetadataBlob: aws.smithy.kotlin.runtime.content.ByteStream? = builder.imageSetMetadataBlob

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

    override fun toString(): kotlin.String = buildString {
        append("GetImageSetMetadataResponse(")
        append("contentEncoding=$contentEncoding,")
        append("contentType=$contentType,")
        append("imageSetMetadataBlob=$imageSetMetadataBlob")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = contentEncoding?.hashCode() ?: 0
        result = 31 * result + (contentType?.hashCode() ?: 0)
        result = 31 * result + (imageSetMetadataBlob?.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 GetImageSetMetadataResponse

        if (contentEncoding != other.contentEncoding) return false
        if (contentType != other.contentType) return false
        if (imageSetMetadataBlob != other.imageSetMetadataBlob) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The compression format in which image set metadata attributes are returned.
         */
        public var contentEncoding: kotlin.String? = null
        /**
         * The format in which the study metadata is returned to the customer. Default is `text/plain`.
         */
        public var contentType: kotlin.String? = null
        /**
         * The blob containing the aggregated metadata information for the image set.
         */
        public var imageSetMetadataBlob: aws.smithy.kotlin.runtime.content.ByteStream? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.GetImageSetMetadataResponse) : this() {
            this.contentEncoding = x.contentEncoding
            this.contentType = x.contentType
            this.imageSetMetadataBlob = x.imageSetMetadataBlob
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy