commonMain.aws.sdk.kotlin.services.omics.model.GetVariantImportJobResponse.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 GetVariantImportJobResponse 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? = builder.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 variant store.
*/
public val destinationName: kotlin.String = requireNotNull(builder.destinationName) { "A non-null value must be provided for destinationName" }
/**
* The job's ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The job's 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" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.GetVariantImportJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetVariantImportJobResponse(")
append("annotationFields=$annotationFields,")
append("completionTime=$completionTime,")
append("creationTime=$creationTime,")
append("destinationName=$destinationName,")
append("id=$id,")
append("items=$items,")
append("roleArn=$roleArn,")
append("runLeftNormalization=$runLeftNormalization,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("updateTime=$updateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = annotationFields?.hashCode() ?: 0
result = 31 * result + (completionTime?.hashCode() ?: 0)
result = 31 * result + (creationTime.hashCode())
result = 31 * result + (destinationName.hashCode())
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())
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 GetVariantImportJobResponse
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 (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
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.GetVariantImportJobResponse = 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 variant store.
*/
public var destinationName: kotlin.String? = null
/**
* The job's ID.
*/
public var id: kotlin.String? = null
/**
* The job's 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.GetVariantImportJobResponse) : this() {
this.annotationFields = x.annotationFields
this.completionTime = x.completionTime
this.creationTime = x.creationTime
this.destinationName = x.destinationName
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
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.GetVariantImportJobResponse = GetVariantImportJobResponse(this)
internal fun correctErrors(): Builder {
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)
return this
}
}
}