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

commonMain.aws.sdk.kotlin.services.omics.model.StartReadSetExportJobRequest.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



public class StartReadSetExportJobRequest private constructor(builder: Builder) {
    /**
     * To ensure that jobs don't run multiple times, specify a unique token for each job.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * A location for exported files in Amazon S3.
     */
    public val destination: kotlin.String? = builder.destination
    /**
     * A service role for the job.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The read set's sequence store ID.
     */
    public val sequenceStoreId: kotlin.String? = builder.sequenceStoreId
    /**
     * The job's source files.
     */
    public val sources: List? = builder.sources

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

    override fun toString(): kotlin.String = buildString {
        append("StartReadSetExportJobRequest(")
        append("clientToken=$clientToken,")
        append("destination=$destination,")
        append("roleArn=$roleArn,")
        append("sequenceStoreId=$sequenceStoreId,")
        append("sources=$sources")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (destination?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (sequenceStoreId?.hashCode() ?: 0)
        result = 31 * result + (sources?.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 StartReadSetExportJobRequest

        if (clientToken != other.clientToken) return false
        if (destination != other.destination) return false
        if (roleArn != other.roleArn) return false
        if (sequenceStoreId != other.sequenceStoreId) return false
        if (sources != other.sources) return false

        return true
    }

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

    public class Builder {
        /**
         * To ensure that jobs don't run multiple times, specify a unique token for each job.
         */
        public var clientToken: kotlin.String? = null
        /**
         * A location for exported files in Amazon S3.
         */
        public var destination: kotlin.String? = null
        /**
         * A service role for the job.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The read set's sequence store ID.
         */
        public var sequenceStoreId: kotlin.String? = null
        /**
         * The job's source files.
         */
        public var sources: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.StartReadSetExportJobRequest) : this() {
            this.clientToken = x.clientToken
            this.destination = x.destination
            this.roleArn = x.roleArn
            this.sequenceStoreId = x.sequenceStoreId
            this.sources = x.sources
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy