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

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

There is a newer version: 1.3.35
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 DeleteImageSetResponse 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 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 = requireNotNull(builder.imageSetWorkflowStatus) { "A non-null value must be provided for imageSetWorkflowStatus" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteImageSetResponse(")
        append("datastoreId=$datastoreId,")
        append("imageSetId=$imageSetId,")
        append("imageSetState=$imageSetState,")
        append("imageSetWorkflowStatus=$imageSetWorkflowStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = datastoreId.hashCode()
        result = 31 * result + (imageSetId.hashCode())
        result = 31 * result + (imageSetState.hashCode())
        result = 31 * result + (imageSetWorkflowStatus.hashCode())
        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 DeleteImageSetResponse

        if (datastoreId != other.datastoreId) return false
        if (imageSetId != other.imageSetId) return false
        if (imageSetState != other.imageSetState) return false
        if (imageSetWorkflowStatus != other.imageSetWorkflowStatus) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * 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

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.DeleteImageSetResponse) : this() {
            this.datastoreId = x.datastoreId
            this.imageSetId = x.imageSetId
            this.imageSetState = x.imageSetState
            this.imageSetWorkflowStatus = x.imageSetWorkflowStatus
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy