commonMain.aws.sdk.kotlin.services.medicalimaging.model.DicomStudyDateAndTime.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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The aggregated structure to store DICOM study date and study time for search capabilities.
*/
public class DicomStudyDateAndTime private constructor(builder: Builder) {
/**
* The DICOM study date provided in `yyMMdd` format.
*/
public val dicomStudyDate: kotlin.String = requireNotNull(builder.dicomStudyDate) { "A non-null value must be provided for dicomStudyDate" }
/**
* The DICOM study time provided in `HHmmss.FFFFFF` format.
*/
public val dicomStudyTime: kotlin.String? = builder.dicomStudyTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.DicomStudyDateAndTime = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DicomStudyDateAndTime(")
append("dicomStudyDate=*** Sensitive Data Redacted ***,")
append("dicomStudyTime=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dicomStudyDate.hashCode()
result = 31 * result + (dicomStudyTime?.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 DicomStudyDateAndTime
if (dicomStudyDate != other.dicomStudyDate) return false
if (dicomStudyTime != other.dicomStudyTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.DicomStudyDateAndTime = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The DICOM study date provided in `yyMMdd` format.
*/
public var dicomStudyDate: kotlin.String? = null
/**
* The DICOM study time provided in `HHmmss.FFFFFF` format.
*/
public var dicomStudyTime: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.DicomStudyDateAndTime) : this() {
this.dicomStudyDate = x.dicomStudyDate
this.dicomStudyTime = x.dicomStudyTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.DicomStudyDateAndTime = DicomStudyDateAndTime(this)
internal fun correctErrors(): Builder {
if (dicomStudyDate == null) dicomStudyDate = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy