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

commonMain.aws.sdk.kotlin.services.medicalimaging.model.GetDatastoreResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.medicalimaging.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetDatastoreResponse private constructor(builder: Builder) {
    /**
     * The data store properties.
     */
    public val datastoreProperties: aws.sdk.kotlin.services.medicalimaging.model.DatastoreProperties? = builder.datastoreProperties

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

    override fun toString(): kotlin.String = buildString {
        append("GetDatastoreResponse(")
        append("datastoreProperties=$datastoreProperties")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = datastoreProperties?.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 GetDatastoreResponse

        if (datastoreProperties != other.datastoreProperties) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The data store properties.
         */
        public var datastoreProperties: aws.sdk.kotlin.services.medicalimaging.model.DatastoreProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.GetDatastoreResponse) : this() {
            this.datastoreProperties = x.datastoreProperties
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy