commonMain.aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Properties of the import job.
*/
public class DicomImportJobProperties private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) that grants permissions to access medical imaging resources.
*/
public val dataAccessRoleArn: kotlin.String = requireNotNull(builder.dataAccessRoleArn) { "A non-null value must be provided for dataAccessRoleArn" }
/**
* The data store identifier.
*/
public val datastoreId: kotlin.String = requireNotNull(builder.datastoreId) { "A non-null value must be provided for datastoreId" }
/**
* The timestamp for when the import job was ended.
*/
public val endedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.endedAt
/**
* The input prefix path for the S3 bucket that contains the DICOM P10 files to be imported.
*/
public val inputS3Uri: kotlin.String = requireNotNull(builder.inputS3Uri) { "A non-null value must be provided for inputS3Uri" }
/**
* The import job identifier.
*/
public val jobId: kotlin.String = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
/**
* The import job name.
*/
public val jobName: kotlin.String = requireNotNull(builder.jobName) { "A non-null value must be provided for jobName" }
/**
* The filters for listing import jobs based on status.
*/
public val jobStatus: aws.sdk.kotlin.services.medicalimaging.model.JobStatus = requireNotNull(builder.jobStatus) { "A non-null value must be provided for jobStatus" }
/**
* The error message thrown if an import job fails.
*/
public val message: kotlin.String? = builder.message
/**
* The output prefix of the S3 bucket to upload the results of the DICOM import job.
*/
public val outputS3Uri: kotlin.String = requireNotNull(builder.outputS3Uri) { "A non-null value must be provided for outputS3Uri" }
/**
* The timestamp for when the import job was submitted.
*/
public val submittedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.submittedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DicomImportJobProperties(")
append("dataAccessRoleArn=$dataAccessRoleArn,")
append("datastoreId=$datastoreId,")
append("endedAt=$endedAt,")
append("inputS3Uri=$inputS3Uri,")
append("jobId=$jobId,")
append("jobName=$jobName,")
append("jobStatus=$jobStatus,")
append("message=$message,")
append("outputS3Uri=$outputS3Uri,")
append("submittedAt=$submittedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataAccessRoleArn.hashCode()
result = 31 * result + (datastoreId.hashCode())
result = 31 * result + (endedAt?.hashCode() ?: 0)
result = 31 * result + (inputS3Uri.hashCode())
result = 31 * result + (jobId.hashCode())
result = 31 * result + (jobName.hashCode())
result = 31 * result + (jobStatus.hashCode())
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (outputS3Uri.hashCode())
result = 31 * result + (submittedAt?.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 DicomImportJobProperties
if (dataAccessRoleArn != other.dataAccessRoleArn) return false
if (datastoreId != other.datastoreId) return false
if (endedAt != other.endedAt) return false
if (inputS3Uri != other.inputS3Uri) return false
if (jobId != other.jobId) return false
if (jobName != other.jobName) return false
if (jobStatus != other.jobStatus) return false
if (message != other.message) return false
if (outputS3Uri != other.outputS3Uri) return false
if (submittedAt != other.submittedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) that grants permissions to access medical imaging resources.
*/
public var dataAccessRoleArn: kotlin.String? = null
/**
* The data store identifier.
*/
public var datastoreId: kotlin.String? = null
/**
* The timestamp for when the import job was ended.
*/
public var endedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The input prefix path for the S3 bucket that contains the DICOM P10 files to be imported.
*/
public var inputS3Uri: kotlin.String? = null
/**
* The import job identifier.
*/
public var jobId: kotlin.String? = null
/**
* The import job name.
*/
public var jobName: kotlin.String? = null
/**
* The filters for listing import jobs based on status.
*/
public var jobStatus: aws.sdk.kotlin.services.medicalimaging.model.JobStatus? = null
/**
* The error message thrown if an import job fails.
*/
public var message: kotlin.String? = null
/**
* The output prefix of the S3 bucket to upload the results of the DICOM import job.
*/
public var outputS3Uri: kotlin.String? = null
/**
* The timestamp for when the import job was submitted.
*/
public var submittedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties) : this() {
this.dataAccessRoleArn = x.dataAccessRoleArn
this.datastoreId = x.datastoreId
this.endedAt = x.endedAt
this.inputS3Uri = x.inputS3Uri
this.jobId = x.jobId
this.jobName = x.jobName
this.jobStatus = x.jobStatus
this.message = x.message
this.outputS3Uri = x.outputS3Uri
this.submittedAt = x.submittedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.DicomImportJobProperties = DicomImportJobProperties(this)
internal fun correctErrors(): Builder {
if (dataAccessRoleArn == null) dataAccessRoleArn = ""
if (datastoreId == null) datastoreId = ""
if (inputS3Uri == null) inputS3Uri = ""
if (jobId == null) jobId = ""
if (jobName == null) jobName = ""
if (jobStatus == null) jobStatus = JobStatus.SdkUnknown("no value provided")
if (outputS3Uri == null) outputS3Uri = ""
return this
}
}
}