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

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

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

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



public class CreateAnnotationStoreVersionRequest private constructor(builder: Builder) {
    /**
     * The description of an annotation store version.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of an annotation store version from which versions are being created.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Any tags added to annotation store version.
     */
    public val tags: Map? = builder.tags
    /**
     * The name given to an annotation store version to distinguish it from other versions.
     */
    public val versionName: kotlin.String? = builder.versionName
    /**
     * The options for an annotation store version.
     */
    public val versionOptions: aws.sdk.kotlin.services.omics.model.VersionOptions? = builder.versionOptions

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

    override fun toString(): kotlin.String = buildString {
        append("CreateAnnotationStoreVersionRequest(")
        append("description=$description,")
        append("name=$name,")
        append("tags=$tags,")
        append("versionName=$versionName,")
        append("versionOptions=$versionOptions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (versionName?.hashCode() ?: 0)
        result = 31 * result + (versionOptions?.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 CreateAnnotationStoreVersionRequest

        if (description != other.description) return false
        if (name != other.name) return false
        if (tags != other.tags) return false
        if (versionName != other.versionName) return false
        if (versionOptions != other.versionOptions) return false

        return true
    }

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

    public class Builder {
        /**
         * The description of an annotation store version.
         */
        public var description: kotlin.String? = null
        /**
         * The name of an annotation store version from which versions are being created.
         */
        public var name: kotlin.String? = null
        /**
         * Any tags added to annotation store version.
         */
        public var tags: Map? = null
        /**
         * The name given to an annotation store version to distinguish it from other versions.
         */
        public var versionName: kotlin.String? = null
        /**
         * The options for an annotation store version.
         */
        public var versionOptions: aws.sdk.kotlin.services.omics.model.VersionOptions? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.CreateAnnotationStoreVersionRequest) : this() {
            this.description = x.description
            this.name = x.name
            this.tags = x.tags
            this.versionName = x.versionName
            this.versionOptions = x.versionOptions
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy