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

commonMain.aws.sdk.kotlin.services.omics.model.CreateMultipartReadSetUploadResponse.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 CreateMultipartReadSetUploadResponse private constructor(builder: Builder) {
    /**
     * The creation time of the multipart upload.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
    /**
     * The description of the read set.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The source of the read set.
     */
    public val generatedFrom: kotlin.String? = builder.generatedFrom
    /**
     * The name of the read set.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The read set source's reference ARN.
     */
    public val referenceArn: kotlin.String = requireNotNull(builder.referenceArn) { "A non-null value must be provided for referenceArn" }
    /**
     * The source's sample ID.
     */
    public val sampleId: kotlin.String = requireNotNull(builder.sampleId) { "A non-null value must be provided for sampleId" }
    /**
     * The sequence store ID for the store that the read set will be created in.
     */
    public val sequenceStoreId: kotlin.String = requireNotNull(builder.sequenceStoreId) { "A non-null value must be provided for sequenceStoreId" }
    /**
     * The file type of the read set source.
     */
    public val sourceFileType: aws.sdk.kotlin.services.omics.model.FileType = requireNotNull(builder.sourceFileType) { "A non-null value must be provided for sourceFileType" }
    /**
     * The source's subject ID.
     */
    public val subjectId: kotlin.String = requireNotNull(builder.subjectId) { "A non-null value must be provided for subjectId" }
    /**
     * The tags to add to the read set.
     */
    public val tags: Map? = builder.tags
    /**
     * he ID for the initiated multipart upload.
     */
    public val uploadId: kotlin.String = requireNotNull(builder.uploadId) { "A non-null value must be provided for uploadId" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.CreateMultipartReadSetUploadResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateMultipartReadSetUploadResponse(")
        append("creationTime=$creationTime,")
        append("description=$description,")
        append("generatedFrom=$generatedFrom,")
        append("name=$name,")
        append("referenceArn=$referenceArn,")
        append("sampleId=$sampleId,")
        append("sequenceStoreId=$sequenceStoreId,")
        append("sourceFileType=$sourceFileType,")
        append("subjectId=$subjectId,")
        append("tags=$tags,")
        append("uploadId=$uploadId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime.hashCode()
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (generatedFrom?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (referenceArn.hashCode())
        result = 31 * result + (sampleId.hashCode())
        result = 31 * result + (sequenceStoreId.hashCode())
        result = 31 * result + (sourceFileType.hashCode())
        result = 31 * result + (subjectId.hashCode())
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (uploadId.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 CreateMultipartReadSetUploadResponse

        if (creationTime != other.creationTime) return false
        if (description != other.description) return false
        if (generatedFrom != other.generatedFrom) return false
        if (name != other.name) return false
        if (referenceArn != other.referenceArn) return false
        if (sampleId != other.sampleId) return false
        if (sequenceStoreId != other.sequenceStoreId) return false
        if (sourceFileType != other.sourceFileType) return false
        if (subjectId != other.subjectId) return false
        if (tags != other.tags) return false
        if (uploadId != other.uploadId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.CreateMultipartReadSetUploadResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The creation time of the multipart upload.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description of the read set.
         */
        public var description: kotlin.String? = null
        /**
         * The source of the read set.
         */
        public var generatedFrom: kotlin.String? = null
        /**
         * The name of the read set.
         */
        public var name: kotlin.String? = null
        /**
         * The read set source's reference ARN.
         */
        public var referenceArn: kotlin.String? = null
        /**
         * The source's sample ID.
         */
        public var sampleId: kotlin.String? = null
        /**
         * The sequence store ID for the store that the read set will be created in.
         */
        public var sequenceStoreId: kotlin.String? = null
        /**
         * The file type of the read set source.
         */
        public var sourceFileType: aws.sdk.kotlin.services.omics.model.FileType? = null
        /**
         * The source's subject ID.
         */
        public var subjectId: kotlin.String? = null
        /**
         * The tags to add to the read set.
         */
        public var tags: Map? = null
        /**
         * he ID for the initiated multipart upload.
         */
        public var uploadId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.CreateMultipartReadSetUploadResponse) : this() {
            this.creationTime = x.creationTime
            this.description = x.description
            this.generatedFrom = x.generatedFrom
            this.name = x.name
            this.referenceArn = x.referenceArn
            this.sampleId = x.sampleId
            this.sequenceStoreId = x.sequenceStoreId
            this.sourceFileType = x.sourceFileType
            this.subjectId = x.subjectId
            this.tags = x.tags
            this.uploadId = x.uploadId
        }

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

        internal fun correctErrors(): Builder {
            if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
            if (referenceArn == null) referenceArn = ""
            if (sampleId == null) sampleId = ""
            if (sequenceStoreId == null) sequenceStoreId = ""
            if (sourceFileType == null) sourceFileType = FileType.SdkUnknown("no value provided")
            if (subjectId == null) subjectId = ""
            if (uploadId == null) uploadId = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy