
commonMain.aws.sdk.kotlin.services.omics.model.GetReadSetExportJobResponse.kt Maven / Gradle / Ivy
// 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 GetReadSetExportJobResponse private constructor(builder: Builder) {
/**
* 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 in Amazon S3.
*/
public val destination: kotlin.String = requireNotNull(builder.destination) { "A non-null value must be provided for destination" }
/**
* The job's ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The job's read sets.
*/
public val readSets: List? = builder.readSets
/**
* The job's sequence store ID.
*/
public val sequenceStoreId: kotlin.String = requireNotNull(builder.sequenceStoreId) { "A non-null value must be provided for sequenceStoreId" }
/**
* The job's status.
*/
public val status: aws.sdk.kotlin.services.omics.model.ReadSetExportJobStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
/**
* The job's status message.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.GetReadSetExportJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetReadSetExportJobResponse(")
append("completionTime=$completionTime,")
append("creationTime=$creationTime,")
append("destination=$destination,")
append("id=$id,")
append("readSets=$readSets,")
append("sequenceStoreId=$sequenceStoreId,")
append("status=$status,")
append("statusMessage=$statusMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = completionTime?.hashCode() ?: 0
result = 31 * result + (creationTime.hashCode())
result = 31 * result + (destination.hashCode())
result = 31 * result + (id.hashCode())
result = 31 * result + (readSets?.hashCode() ?: 0)
result = 31 * result + (sequenceStoreId.hashCode())
result = 31 * result + (status.hashCode())
result = 31 * result + (statusMessage?.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 GetReadSetExportJobResponse
if (completionTime != other.completionTime) return false
if (creationTime != other.creationTime) return false
if (destination != other.destination) return false
if (id != other.id) return false
if (readSets != other.readSets) return false
if (sequenceStoreId != other.sequenceStoreId) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.GetReadSetExportJobResponse = Builder(this).apply(block).build()
public class Builder {
/**
* 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 in Amazon S3.
*/
public var destination: kotlin.String? = null
/**
* The job's ID.
*/
public var id: kotlin.String? = null
/**
* The job's read sets.
*/
public var readSets: List? = null
/**
* The job's sequence store ID.
*/
public var sequenceStoreId: kotlin.String? = null
/**
* The job's status.
*/
public var status: aws.sdk.kotlin.services.omics.model.ReadSetExportJobStatus? = null
/**
* The job's status message.
*/
public var statusMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.GetReadSetExportJobResponse) : this() {
this.completionTime = x.completionTime
this.creationTime = x.creationTime
this.destination = x.destination
this.id = x.id
this.readSets = x.readSets
this.sequenceStoreId = x.sequenceStoreId
this.status = x.status
this.statusMessage = x.statusMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.GetReadSetExportJobResponse = GetReadSetExportJobResponse(this)
internal fun correctErrors(): Builder {
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (destination == null) destination = ""
if (id == null) id = ""
if (sequenceStoreId == null) sequenceStoreId = ""
if (status == null) status = ReadSetExportJobStatus.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy