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

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



/**
 * Contains DICOMUpdates.
 */
public sealed class MetadataUpdates {
    /**
     * The object containing `removableAttributes` and `updatableAttributes`.
     */
    public data class DicomUpdates(val value: aws.sdk.kotlin.services.medicalimaging.model.DicomUpdates) : aws.sdk.kotlin.services.medicalimaging.model.MetadataUpdates() {
    }

    /**
     * Specifies the previous image set version ID to revert the current image set back to.
     *
     * You must provide either `revertToVersionId` or `DICOMUpdates` in your request. A `ValidationException` error is thrown if both parameters are provided at the same time.
     */
    public data class RevertToVersionId(val value: kotlin.String) : aws.sdk.kotlin.services.medicalimaging.model.MetadataUpdates() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.medicalimaging.model.MetadataUpdates() {
    }

    /**
     * Casts this [MetadataUpdates] as a [DicomUpdates] and retrieves its [aws.sdk.kotlin.services.medicalimaging.model.DicomUpdates] value. Throws an exception if the [MetadataUpdates] is not a
     * [DicomUpdates].
     */
    public fun asDicomUpdates(): aws.sdk.kotlin.services.medicalimaging.model.DicomUpdates = (this as MetadataUpdates.DicomUpdates).value

    /**
     * Casts this [MetadataUpdates] as a [DicomUpdates] and retrieves its [aws.sdk.kotlin.services.medicalimaging.model.DicomUpdates] value. Returns null if the [MetadataUpdates] is not a [DicomUpdates].
     */
    public fun asDicomUpdatesOrNull(): aws.sdk.kotlin.services.medicalimaging.model.DicomUpdates? = (this as? MetadataUpdates.DicomUpdates)?.value

    /**
     * Casts this [MetadataUpdates] as a [RevertToVersionId] and retrieves its [kotlin.String] value. Throws an exception if the [MetadataUpdates] is not a
     * [RevertToVersionId].
     */
    public fun asRevertToVersionId(): kotlin.String = (this as MetadataUpdates.RevertToVersionId).value

    /**
     * Casts this [MetadataUpdates] as a [RevertToVersionId] and retrieves its [kotlin.String] value. Returns null if the [MetadataUpdates] is not a [RevertToVersionId].
     */
    public fun asRevertToVersionIdOrNull(): kotlin.String? = (this as? MetadataUpdates.RevertToVersionId)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy