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

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

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

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



public class GetReadSetRequest private constructor(builder: Builder) {
    /**
     * The file to retrieve.
     */
    public val file: aws.sdk.kotlin.services.omics.model.ReadSetFile? = builder.file
    /**
     * The read set's ID.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The part number to retrieve.
     */
    public val partNumber: kotlin.Int? = builder.partNumber
    /**
     * The read set's sequence store ID.
     */
    public val sequenceStoreId: kotlin.String? = builder.sequenceStoreId

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

    override fun toString(): kotlin.String = buildString {
        append("GetReadSetRequest(")
        append("file=$file,")
        append("id=$id,")
        append("partNumber=$partNumber,")
        append("sequenceStoreId=$sequenceStoreId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = file?.hashCode() ?: 0
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (partNumber ?: 0)
        result = 31 * result + (sequenceStoreId?.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 GetReadSetRequest

        if (file != other.file) return false
        if (id != other.id) return false
        if (partNumber != other.partNumber) return false
        if (sequenceStoreId != other.sequenceStoreId) return false

        return true
    }

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

    public class Builder {
        /**
         * The file to retrieve.
         */
        public var file: aws.sdk.kotlin.services.omics.model.ReadSetFile? = null
        /**
         * The read set's ID.
         */
        public var id: kotlin.String? = null
        /**
         * The part number to retrieve.
         */
        public var partNumber: kotlin.Int? = null
        /**
         * The read set's sequence store ID.
         */
        public var sequenceStoreId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.GetReadSetRequest) : this() {
            this.file = x.file
            this.id = x.id
            this.partNumber = x.partNumber
            this.sequenceStoreId = x.sequenceStoreId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy