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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.omics.model



public class CreateMultipartReadSetUploadRequest private constructor(builder: Builder) {
    /**
     * An idempotency token that can be used to avoid triggering multiple multipart uploads.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The description of the read set.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Where the source originated.
     */
    public val generatedFrom: kotlin.String? = builder.generatedFrom
    /**
     * The name of the read set.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ARN of the reference.
     */
    public val referenceArn: kotlin.String? = builder.referenceArn
    /**
     * The source's sample ID.
     */
    public val sampleId: kotlin.String? = builder.sampleId
    /**
     * The sequence store ID for the store that is the destination of the multipart uploads.
     */
    public val sequenceStoreId: kotlin.String? = builder.sequenceStoreId
    /**
     * The type of file being uploaded.
     */
    public val sourceFileType: aws.sdk.kotlin.services.omics.model.FileType? = builder.sourceFileType
    /**
     * The source's subject ID.
     */
    public val subjectId: kotlin.String? = builder.subjectId
    /**
     * Any tags to add to the read set.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateMultipartReadSetUploadRequest(")
        append("clientToken=$clientToken,")
        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(")")
    }

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

        if (clientToken != other.clientToken) 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

        return true
    }

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

    public class Builder {
        /**
         * An idempotency token that can be used to avoid triggering multiple multipart uploads.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The description of the read set.
         */
        public var description: kotlin.String? = null
        /**
         * Where the source originated.
         */
        public var generatedFrom: kotlin.String? = null
        /**
         * The name of the read set.
         */
        public var name: kotlin.String? = null
        /**
         * The ARN of the reference.
         */
        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 is the destination of the multipart uploads.
         */
        public var sequenceStoreId: kotlin.String? = null
        /**
         * The type of file being uploaded.
         */
        public var sourceFileType: aws.sdk.kotlin.services.omics.model.FileType? = null
        /**
         * The source's subject ID.
         */
        public var subjectId: kotlin.String? = null
        /**
         * Any tags to add to the read set.
         */
        public var tags: Map? = null

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

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy