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

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

public class GetImageFrameResponse private constructor(builder: Builder) {
    /**
     * The format in which the image frame information is returned to the customer. Default is `application/octet-stream`.
     */
    public val contentType: kotlin.String? = builder.contentType
    /**
     * The blob containing the aggregated image frame information.
     */
    public val imageFrameBlob: aws.smithy.kotlin.runtime.content.ByteStream? = builder.imageFrameBlob

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

    override fun toString(): kotlin.String = buildString {
        append("GetImageFrameResponse(")
        append("contentType=$contentType,")
        append("imageFrameBlob=$imageFrameBlob")
        append(")")
    }

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

        if (contentType != other.contentType) return false
        if (imageFrameBlob != other.imageFrameBlob) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The format in which the image frame information is returned to the customer. Default is `application/octet-stream`.
         */
        public var contentType: kotlin.String? = null
        /**
         * The blob containing the aggregated image frame information.
         */
        public var imageFrameBlob: aws.smithy.kotlin.runtime.content.ByteStream? = null

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy