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

commonMain.aws.sdk.kotlin.services.omics.model.CreateReferenceStoreResponse.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
import aws.smithy.kotlin.runtime.time.Instant

public class CreateReferenceStoreResponse private constructor(builder: Builder) {
    /**
     * The store's ARN.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * When the store was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
    /**
     * The store's description.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The store's ID.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * The store's name.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The store's SSE settings.
     */
    public val sseConfig: aws.sdk.kotlin.services.omics.model.SseConfig? = builder.sseConfig

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

    override fun toString(): kotlin.String = buildString {
        append("CreateReferenceStoreResponse(")
        append("arn=$arn,")
        append("creationTime=$creationTime,")
        append("description=$description,")
        append("id=$id,")
        append("name=$name,")
        append("sseConfig=$sseConfig")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn.hashCode()
        result = 31 * result + (creationTime.hashCode())
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (id.hashCode())
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (sseConfig?.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 CreateReferenceStoreResponse

        if (arn != other.arn) return false
        if (creationTime != other.creationTime) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (sseConfig != other.sseConfig) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The store's ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * When the store was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The store's description.
         */
        public var description: kotlin.String? = null
        /**
         * The store's ID.
         */
        public var id: kotlin.String? = null
        /**
         * The store's name.
         */
        public var name: kotlin.String? = null
        /**
         * The store's SSE settings.
         */
        public var sseConfig: aws.sdk.kotlin.services.omics.model.SseConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.CreateReferenceStoreResponse) : this() {
            this.arn = x.arn
            this.creationTime = x.creationTime
            this.description = x.description
            this.id = x.id
            this.name = x.name
            this.sseConfig = x.sseConfig
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.omics.model.SseConfig] inside the given [block]
         */
        public fun sseConfig(block: aws.sdk.kotlin.services.omics.model.SseConfig.Builder.() -> kotlin.Unit) {
            this.sseConfig = aws.sdk.kotlin.services.omics.model.SseConfig.invoke(block)
        }

        internal fun correctErrors(): Builder {
            if (arn == null) arn = ""
            if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
            if (id == null) id = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy