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

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



/**
 * File settings for a TSV store.
 */
public class TsvStoreOptions private constructor(builder: Builder) {
    /**
     * The store's annotation type.
     */
    public val annotationType: aws.sdk.kotlin.services.omics.model.AnnotationType? = builder.annotationType
    /**
     * The store's header key to column name mapping.
     */
    public val formatToHeader: Map? = builder.formatToHeader
    /**
     * The store's schema.
     */
    public val schema: List>? = builder.schema

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

    override fun toString(): kotlin.String = buildString {
        append("TsvStoreOptions(")
        append("annotationType=$annotationType,")
        append("formatToHeader=$formatToHeader,")
        append("schema=$schema")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = annotationType?.hashCode() ?: 0
        result = 31 * result + (formatToHeader?.hashCode() ?: 0)
        result = 31 * result + (schema?.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 TsvStoreOptions

        if (annotationType != other.annotationType) return false
        if (formatToHeader != other.formatToHeader) return false
        if (schema != other.schema) return false

        return true
    }

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

    public class Builder {
        /**
         * The store's annotation type.
         */
        public var annotationType: aws.sdk.kotlin.services.omics.model.AnnotationType? = null
        /**
         * The store's header key to column name mapping.
         */
        public var formatToHeader: Map? = null
        /**
         * The store's schema.
         */
        public var schema: List>? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.TsvStoreOptions) : this() {
            this.annotationType = x.annotationType
            this.formatToHeader = x.formatToHeader
            this.schema = x.schema
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy