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

commonMain.aws.sdk.kotlin.services.medicalimaging.model.UpdateImageSetMetadataResponse.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.time.Instant

public class UpdateImageSetMetadataResponse private constructor(builder: Builder) {
    /**
     * The timestamp when image set metadata was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The data store identifier.
     */
    public val datastoreId: kotlin.String = requireNotNull(builder.datastoreId) { "A non-null value must be provided for datastoreId" }
    /**
     * The image set identifier.
     */
    public val imageSetId: kotlin.String = requireNotNull(builder.imageSetId) { "A non-null value must be provided for imageSetId" }
    /**
     * The image set state.
     */
    public val imageSetState: aws.sdk.kotlin.services.medicalimaging.model.ImageSetState = requireNotNull(builder.imageSetState) { "A non-null value must be provided for imageSetState" }
    /**
     * The image set workflow status.
     */
    public val imageSetWorkflowStatus: aws.sdk.kotlin.services.medicalimaging.model.ImageSetWorkflowStatus? = builder.imageSetWorkflowStatus
    /**
     * The latest image set version identifier.
     */
    public val latestVersionId: kotlin.String = requireNotNull(builder.latestVersionId) { "A non-null value must be provided for latestVersionId" }
    /**
     * The error message thrown if an update image set metadata action fails.
     */
    public val message: kotlin.String? = builder.message
    /**
     * The timestamp when image set metadata was updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateImageSetMetadataResponse(")
        append("createdAt=$createdAt,")
        append("datastoreId=$datastoreId,")
        append("imageSetId=$imageSetId,")
        append("imageSetState=$imageSetState,")
        append("imageSetWorkflowStatus=$imageSetWorkflowStatus,")
        append("latestVersionId=$latestVersionId,")
        append("message=$message,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (datastoreId.hashCode())
        result = 31 * result + (imageSetId.hashCode())
        result = 31 * result + (imageSetState.hashCode())
        result = 31 * result + (imageSetWorkflowStatus?.hashCode() ?: 0)
        result = 31 * result + (latestVersionId.hashCode())
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.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 UpdateImageSetMetadataResponse

        if (createdAt != other.createdAt) return false
        if (datastoreId != other.datastoreId) return false
        if (imageSetId != other.imageSetId) return false
        if (imageSetState != other.imageSetState) return false
        if (imageSetWorkflowStatus != other.imageSetWorkflowStatus) return false
        if (latestVersionId != other.latestVersionId) return false
        if (message != other.message) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The timestamp when image set metadata was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The data store identifier.
         */
        public var datastoreId: kotlin.String? = null
        /**
         * The image set identifier.
         */
        public var imageSetId: kotlin.String? = null
        /**
         * The image set state.
         */
        public var imageSetState: aws.sdk.kotlin.services.medicalimaging.model.ImageSetState? = null
        /**
         * The image set workflow status.
         */
        public var imageSetWorkflowStatus: aws.sdk.kotlin.services.medicalimaging.model.ImageSetWorkflowStatus? = null
        /**
         * The latest image set version identifier.
         */
        public var latestVersionId: kotlin.String? = null
        /**
         * The error message thrown if an update image set metadata action fails.
         */
        public var message: kotlin.String? = null
        /**
         * The timestamp when image set metadata was updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.UpdateImageSetMetadataResponse) : this() {
            this.createdAt = x.createdAt
            this.datastoreId = x.datastoreId
            this.imageSetId = x.imageSetId
            this.imageSetState = x.imageSetState
            this.imageSetWorkflowStatus = x.imageSetWorkflowStatus
            this.latestVersionId = x.latestVersionId
            this.message = x.message
            this.updatedAt = x.updatedAt
        }

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

        internal fun correctErrors(): Builder {
            if (datastoreId == null) datastoreId = ""
            if (imageSetId == null) imageSetId = ""
            if (imageSetState == null) imageSetState = ImageSetState.SdkUnknown("no value provided")
            if (latestVersionId == null) latestVersionId = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy