All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.omics.model.ImportReadSetJobItem.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

/**
 * An import read set job.
 */
public class ImportReadSetJobItem 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 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 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.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.ImportReadSetJobItem = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ImportReadSetJobItem(")
        append("completionTime=$completionTime,")
        append("creationTime=$creationTime,")
        append("id=$id,")
        append("roleArn=$roleArn,")
        append("sequenceStoreId=$sequenceStoreId,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = completionTime?.hashCode() ?: 0
        result = 31 * 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 ImportReadSetJobItem

        if (completionTime != other.completionTime) return false
        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.ImportReadSetJobItem = 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 ID.
         */
        public var id: kotlin.String? = null
        /**
         * The job's service role ARN.
         */
        public var roleArn: kotlin.String? = 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.ReadSetImportJobStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.ImportReadSetJobItem) : this() {
            this.completionTime = x.completionTime
            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.ImportReadSetJobItem = ImportReadSetJobItem(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