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

commonMain.aws.sdk.kotlin.services.omics.model.StartReadSetExportJobResponse.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 StartReadSetExportJobResponse 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 output location.
     */
    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 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.ReadSetExportJobStatus = 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.StartReadSetExportJobResponse = Builder().apply(block).build()
    }

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

    override fun hashCode(): kotlin.Int {
        var result = creationTime.hashCode()
        result = 31 * result + (destination.hashCode())
        result = 31 * result + (id.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 StartReadSetExportJobResponse

        if (creationTime != other.creationTime) return false
        if (destination != other.destination) return false
        if (id != other.id) 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.StartReadSetExportJobResponse = 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 output location.
         */
        public var destination: kotlin.String? = null
        /**
         * The job's ID.
         */
        public var id: 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.ReadSetExportJobStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.StartReadSetExportJobResponse) : this() {
            this.creationTime = x.creationTime
            this.destination = x.destination
            this.id = x.id
            this.sequenceStoreId = x.sequenceStoreId
            this.status = x.status
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.omics.model.StartReadSetExportJobResponse = StartReadSetExportJobResponse(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