
commonMain.aws.sdk.kotlin.services.healthlake.model.ExportJobProperties.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.healthlake.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* The properties of a FHIR export job, including the ID, ARN, name, and the status of the job.
*/
public class ExportJobProperties private constructor(builder: Builder) {
/**
* The Amazon Resource Name used during the initiation of the job.
*/
public val dataAccessRoleArn: kotlin.String? = builder.dataAccessRoleArn
/**
* The AWS generated ID for the data store from which files are being exported for an export job.
*/
public val datastoreId: kotlin.String = requireNotNull(builder.datastoreId) { "A non-null value must be provided for datastoreId" }
/**
* The time an export job completed.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* The AWS generated ID for an export job.
*/
public val jobId: kotlin.String = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
/**
* The user generated name for an export job.
*/
public val jobName: kotlin.String? = builder.jobName
/**
* The status of a FHIR export job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED, or FAILED.
*/
public val jobStatus: aws.sdk.kotlin.services.healthlake.model.JobStatus = requireNotNull(builder.jobStatus) { "A non-null value must be provided for jobStatus" }
/**
* An explanation of any errors that may have occurred during the export job.
*/
public val message: kotlin.String? = builder.message
/**
* The output data configuration that was supplied when the export job was created.
*/
public val outputDataConfig: aws.sdk.kotlin.services.healthlake.model.OutputDataConfig? = builder.outputDataConfig
/**
* The time an export job was initiated.
*/
public val submitTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.submitTime) { "A non-null value must be provided for submitTime" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.healthlake.model.ExportJobProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExportJobProperties(")
append("dataAccessRoleArn=$dataAccessRoleArn,")
append("datastoreId=$datastoreId,")
append("endTime=$endTime,")
append("jobId=$jobId,")
append("jobName=$jobName,")
append("jobStatus=$jobStatus,")
append("message=$message,")
append("outputDataConfig=$outputDataConfig,")
append("submitTime=$submitTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataAccessRoleArn?.hashCode() ?: 0
result = 31 * result + (datastoreId.hashCode())
result = 31 * result + (endTime?.hashCode() ?: 0)
result = 31 * result + (jobId.hashCode())
result = 31 * result + (jobName?.hashCode() ?: 0)
result = 31 * result + (jobStatus.hashCode())
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (outputDataConfig?.hashCode() ?: 0)
result = 31 * result + (submitTime.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 ExportJobProperties
if (dataAccessRoleArn != other.dataAccessRoleArn) return false
if (datastoreId != other.datastoreId) return false
if (endTime != other.endTime) 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 (outputDataConfig != other.outputDataConfig) return false
if (submitTime != other.submitTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.healthlake.model.ExportJobProperties = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name used during the initiation of the job.
*/
public var dataAccessRoleArn: kotlin.String? = null
/**
* The AWS generated ID for the data store from which files are being exported for an export job.
*/
public var datastoreId: kotlin.String? = null
/**
* The time an export job completed.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The AWS generated ID for an export job.
*/
public var jobId: kotlin.String? = null
/**
* The user generated name for an export job.
*/
public var jobName: kotlin.String? = null
/**
* The status of a FHIR export job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED, or FAILED.
*/
public var jobStatus: aws.sdk.kotlin.services.healthlake.model.JobStatus? = null
/**
* An explanation of any errors that may have occurred during the export job.
*/
public var message: kotlin.String? = null
/**
* The output data configuration that was supplied when the export job was created.
*/
public var outputDataConfig: aws.sdk.kotlin.services.healthlake.model.OutputDataConfig? = null
/**
* The time an export job was initiated.
*/
public var submitTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.healthlake.model.ExportJobProperties) : this() {
this.dataAccessRoleArn = x.dataAccessRoleArn
this.datastoreId = x.datastoreId
this.endTime = x.endTime
this.jobId = x.jobId
this.jobName = x.jobName
this.jobStatus = x.jobStatus
this.message = x.message
this.outputDataConfig = x.outputDataConfig
this.submitTime = x.submitTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.healthlake.model.ExportJobProperties = ExportJobProperties(this)
internal fun correctErrors(): Builder {
if (datastoreId == null) datastoreId = ""
if (jobId == null) jobId = ""
if (jobStatus == null) jobStatus = JobStatus.SdkUnknown("no value provided")
if (submitTime == null) submitTime = Instant.fromEpochSeconds(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy