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

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

/**
 * The image set properties.
 */
public class ImageSetProperties private constructor(builder: Builder) {
    /**
     * The timestamp when the image set properties were created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The timestamp when the image set properties were deleted.
     */
    public val deletedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.deletedAt
    /**
     * 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 error message thrown if an image set action fails.
     */
    public val message: kotlin.String? = builder.message
    /**
     * Contains details on overrides used when creating the returned version of an image set. For example, if `forced` exists, the `forced` flag was used when creating the image set.
     */
    public val overrides: aws.sdk.kotlin.services.medicalimaging.model.Overrides? = builder.overrides
    /**
     * The timestamp when the image set properties were updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
    /**
     * The image set version identifier.
     */
    public val versionId: kotlin.String = requireNotNull(builder.versionId) { "A non-null value must be provided for versionId" }

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

    override fun toString(): kotlin.String = buildString {
        append("ImageSetProperties(")
        append("createdAt=$createdAt,")
        append("deletedAt=$deletedAt,")
        append("imageSetId=$imageSetId,")
        append("imageSetState=$imageSetState,")
        append("imageSetWorkflowStatus=$imageSetWorkflowStatus,")
        append("message=$message,")
        append("overrides=$overrides,")
        append("updatedAt=$updatedAt,")
        append("versionId=$versionId")
        append(")")
    }

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

        if (createdAt != other.createdAt) return false
        if (deletedAt != other.deletedAt) return false
        if (imageSetId != other.imageSetId) return false
        if (imageSetState != other.imageSetState) return false
        if (imageSetWorkflowStatus != other.imageSetWorkflowStatus) return false
        if (message != other.message) return false
        if (overrides != other.overrides) return false
        if (updatedAt != other.updatedAt) return false
        if (versionId != other.versionId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The timestamp when the image set properties were created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The timestamp when the image set properties were deleted.
         */
        public var deletedAt: aws.smithy.kotlin.runtime.time.Instant? = 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 error message thrown if an image set action fails.
         */
        public var message: kotlin.String? = null
        /**
         * Contains details on overrides used when creating the returned version of an image set. For example, if `forced` exists, the `forced` flag was used when creating the image set.
         */
        public var overrides: aws.sdk.kotlin.services.medicalimaging.model.Overrides? = null
        /**
         * The timestamp when the image set properties were updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The image set version identifier.
         */
        public var versionId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.ImageSetProperties) : this() {
            this.createdAt = x.createdAt
            this.deletedAt = x.deletedAt
            this.imageSetId = x.imageSetId
            this.imageSetState = x.imageSetState
            this.imageSetWorkflowStatus = x.imageSetWorkflowStatus
            this.message = x.message
            this.overrides = x.overrides
            this.updatedAt = x.updatedAt
            this.versionId = x.versionId
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy