commonMain.aws.sdk.kotlin.services.omics.model.GetAnnotationImportJobResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of omics-jvm Show documentation
Show all versions of omics-jvm Show documentation
The AWS SDK for Kotlin client for Omics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetAnnotationImportJobResponse private constructor(builder: Builder) {
/**
* The annotation schema generated by the parsed annotation data.
*/
public val annotationFields: Map? = builder.annotationFields
/**
* When the job completed.
*/
public val completionTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.completionTime) { "A non-null value must be provided for completionTime" }
/**
* When the job was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
/**
* The job's destination annotation store.
*/
public val destinationName: kotlin.String = requireNotNull(builder.destinationName) { "A non-null value must be provided for destinationName" }
/**
* Formatting options for a file.
*/
public val formatOptions: aws.sdk.kotlin.services.omics.model.FormatOptions? = builder.formatOptions
/**
* The job's ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The job's imported items.
*/
public val items: List = requireNotNull(builder.items) { "A non-null value must be provided for items" }
/**
* The job's service role ARN.
*/
public val roleArn: kotlin.String = requireNotNull(builder.roleArn) { "A non-null value must be provided for roleArn" }
/**
* The job's left normalization setting.
*/
public val runLeftNormalization: kotlin.Boolean = builder.runLeftNormalization
/**
* The job's status.
*/
public val status: aws.sdk.kotlin.services.omics.model.JobStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
/**
* The job's status message.
*/
public val statusMessage: kotlin.String = requireNotNull(builder.statusMessage) { "A non-null value must be provided for statusMessage" }
/**
* When the job was updated.
*/
public val updateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateTime) { "A non-null value must be provided for updateTime" }
/**
* The name of the annotation store version.
*/
public val versionName: kotlin.String = requireNotNull(builder.versionName) { "A non-null value must be provided for versionName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.GetAnnotationImportJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAnnotationImportJobResponse(")
append("annotationFields=$annotationFields,")
append("completionTime=$completionTime,")
append("creationTime=$creationTime,")
append("destinationName=$destinationName,")
append("formatOptions=$formatOptions,")
append("id=$id,")
append("items=$items,")
append("roleArn=$roleArn,")
append("runLeftNormalization=$runLeftNormalization,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("updateTime=$updateTime,")
append("versionName=$versionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = annotationFields?.hashCode() ?: 0
result = 31 * result + (completionTime.hashCode())
result = 31 * result + (creationTime.hashCode())
result = 31 * result + (destinationName.hashCode())
result = 31 * result + (formatOptions?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (items.hashCode())
result = 31 * result + (roleArn.hashCode())
result = 31 * result + (runLeftNormalization.hashCode())
result = 31 * result + (status.hashCode())
result = 31 * result + (statusMessage.hashCode())
result = 31 * result + (updateTime.hashCode())
result = 31 * result + (versionName.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 GetAnnotationImportJobResponse
if (annotationFields != other.annotationFields) return false
if (completionTime != other.completionTime) return false
if (creationTime != other.creationTime) return false
if (destinationName != other.destinationName) return false
if (formatOptions != other.formatOptions) return false
if (id != other.id) return false
if (items != other.items) return false
if (roleArn != other.roleArn) return false
if (runLeftNormalization != other.runLeftNormalization) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (updateTime != other.updateTime) return false
if (versionName != other.versionName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.GetAnnotationImportJobResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The annotation schema generated by the parsed annotation data.
*/
public var annotationFields: Map? = null
/**
* When the job completed.
*/
public var completionTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* When the job was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The job's destination annotation store.
*/
public var destinationName: kotlin.String? = null
/**
* Formatting options for a file.
*/
public var formatOptions: aws.sdk.kotlin.services.omics.model.FormatOptions? = null
/**
* The job's ID.
*/
public var id: kotlin.String? = null
/**
* The job's imported items.
*/
public var items: List? = null
/**
* The job's service role ARN.
*/
public var roleArn: kotlin.String? = null
/**
* The job's left normalization setting.
*/
public var runLeftNormalization: kotlin.Boolean = false
/**
* The job's status.
*/
public var status: aws.sdk.kotlin.services.omics.model.JobStatus? = null
/**
* The job's status message.
*/
public var statusMessage: kotlin.String? = null
/**
* When the job was updated.
*/
public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the annotation store version.
*/
public var versionName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.GetAnnotationImportJobResponse) : this() {
this.annotationFields = x.annotationFields
this.completionTime = x.completionTime
this.creationTime = x.creationTime
this.destinationName = x.destinationName
this.formatOptions = x.formatOptions
this.id = x.id
this.items = x.items
this.roleArn = x.roleArn
this.runLeftNormalization = x.runLeftNormalization
this.status = x.status
this.statusMessage = x.statusMessage
this.updateTime = x.updateTime
this.versionName = x.versionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.GetAnnotationImportJobResponse = GetAnnotationImportJobResponse(this)
internal fun correctErrors(): Builder {
if (completionTime == null) completionTime = Instant.fromEpochSeconds(0)
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (destinationName == null) destinationName = ""
if (id == null) id = ""
if (items == null) items = emptyList()
if (roleArn == null) roleArn = ""
if (status == null) status = JobStatus.SdkUnknown("no value provided")
if (statusMessage == null) statusMessage = ""
if (updateTime == null) updateTime = Instant.fromEpochSeconds(0)
if (versionName == null) versionName = ""
return this
}
}
}