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

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

import aws.smithy.kotlin.runtime.SdkDsl

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

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

    override fun toString(): kotlin.String = buildString {
        append("TsvVersionOptions(")
        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 TsvVersionOptions

        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.TsvVersionOptions = Builder(this).apply(block).build()

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy