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

commonMain.aws.sdk.kotlin.services.omics.model.GetReferenceImportJobResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.37
Show newest version
// 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 GetReferenceImportJobResponse 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 reference store ID.
     */
    public val referenceStoreId: kotlin.String = requireNotNull(builder.referenceStoreId) { "A non-null value must be provided for referenceStoreId" }
    /**
     * 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 source files.
     */
    public val sources: List = requireNotNull(builder.sources) { "A non-null value must be provided for sources" }
    /**
     * The job's status.
     */
    public val status: aws.sdk.kotlin.services.omics.model.ReferenceImportJobStatus = 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.GetReferenceImportJobResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetReferenceImportJobResponse(")
        append("completionTime=$completionTime,")
        append("creationTime=$creationTime,")
        append("id=$id,")
        append("referenceStoreId=$referenceStoreId,")
        append("roleArn=$roleArn,")
        append("sources=$sources,")
        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 + (id.hashCode())
        result = 31 * result + (referenceStoreId.hashCode())
        result = 31 * result + (roleArn.hashCode())
        result = 31 * result + (sources.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 GetReferenceImportJobResponse

        if (completionTime != other.completionTime) return false
        if (creationTime != other.creationTime) return false
        if (id != other.id) return false
        if (referenceStoreId != other.referenceStoreId) return false
        if (roleArn != other.roleArn) return false
        if (sources != other.sources) 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.GetReferenceImportJobResponse = 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 reference store ID.
         */
        public var referenceStoreId: kotlin.String? = null
        /**
         * The job's service role ARN.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The job's source files.
         */
        public var sources: List? = null
        /**
         * The job's status.
         */
        public var status: aws.sdk.kotlin.services.omics.model.ReferenceImportJobStatus? = 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.GetReferenceImportJobResponse) : this() {
            this.completionTime = x.completionTime
            this.creationTime = x.creationTime
            this.id = x.id
            this.referenceStoreId = x.referenceStoreId
            this.roleArn = x.roleArn
            this.sources = x.sources
            this.status = x.status
            this.statusMessage = x.statusMessage
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.omics.model.GetReferenceImportJobResponse = GetReferenceImportJobResponse(this)

        internal fun correctErrors(): Builder {
            if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
            if (id == null) id = ""
            if (referenceStoreId == null) referenceStoreId = ""
            if (roleArn == null) roleArn = ""
            if (sources == null) sources = emptyList()
            if (status == null) status = ReferenceImportJobStatus.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy