commonMain.aws.sdk.kotlin.services.medicalimaging.model.MetadataUpdates.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of medicalimaging-jvm Show documentation
Show all versions of medicalimaging-jvm Show documentation
The AWS SDK for Kotlin client for Medical Imaging
// 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
}