
commonMain.aws.sdk.kotlin.services.omics.model.StartReadSetImportJobResponse.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 StartReadSetImportJobResponse private constructor(builder: Builder) {
/**
* 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 ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The job's service role ARN.
*/
public val roleArn: kotlin.String = requireNotNull(builder.roleArn) { "A non-null value must be provided for roleArn" }
/**
* The read set'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.ReadSetImportJobStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.StartReadSetImportJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartReadSetImportJobResponse(")
append("creationTime=$creationTime,")
append("id=$id,")
append("roleArn=$roleArn,")
append("sequenceStoreId=$sequenceStoreId,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime.hashCode()
result = 31 * result + (id.hashCode())
result = 31 * result + (roleArn.hashCode())
result = 31 * result + (sequenceStoreId.hashCode())
result = 31 * result + (status.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 StartReadSetImportJobResponse
if (creationTime != other.creationTime) return false
if (id != other.id) return false
if (roleArn != other.roleArn) return false
if (sequenceStoreId != other.sequenceStoreId) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.StartReadSetImportJobResponse = Builder(this).apply(block).build()
public class Builder {
/**
* When the job was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The job's ID.
*/
public var id: kotlin.String? = null
/**
* The job's service role ARN.
*/
public var roleArn: kotlin.String? = null
/**
* The read set's sequence store ID.
*/
public var sequenceStoreId: kotlin.String? = null
/**
* The job's status.
*/
public var status: aws.sdk.kotlin.services.omics.model.ReadSetImportJobStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.StartReadSetImportJobResponse) : this() {
this.creationTime = x.creationTime
this.id = x.id
this.roleArn = x.roleArn
this.sequenceStoreId = x.sequenceStoreId
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.StartReadSetImportJobResponse = StartReadSetImportJobResponse(this)
internal fun correctErrors(): Builder {
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (id == null) id = ""
if (roleArn == null) roleArn = ""
if (sequenceStoreId == null) sequenceStoreId = ""
if (status == null) status = ReadSetImportJobStatus.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy