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

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

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * List of summaries of data stores.
 */
public class DatastoreSummary private constructor(builder: Builder) {
    /**
     * The timestamp when the data store was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The Amazon Resource Name (ARN) for the data store.
     */
    public val datastoreArn: kotlin.String? = builder.datastoreArn
    /**
     * The data store identifier.
     */
    public val datastoreId: kotlin.String = requireNotNull(builder.datastoreId) { "A non-null value must be provided for datastoreId" }
    /**
     * The data store name.
     */
    public val datastoreName: kotlin.String = requireNotNull(builder.datastoreName) { "A non-null value must be provided for datastoreName" }
    /**
     * The data store status.
     */
    public val datastoreStatus: aws.sdk.kotlin.services.medicalimaging.model.DatastoreStatus = requireNotNull(builder.datastoreStatus) { "A non-null value must be provided for datastoreStatus" }
    /**
     * The timestamp when the data store was last updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("DatastoreSummary(")
        append("createdAt=$createdAt,")
        append("datastoreArn=$datastoreArn,")
        append("datastoreId=$datastoreId,")
        append("datastoreName=$datastoreName,")
        append("datastoreStatus=$datastoreStatus,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (datastoreArn?.hashCode() ?: 0)
        result = 31 * result + (datastoreId.hashCode())
        result = 31 * result + (datastoreName.hashCode())
        result = 31 * result + (datastoreStatus.hashCode())
        result = 31 * result + (updatedAt?.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 DatastoreSummary

        if (createdAt != other.createdAt) return false
        if (datastoreArn != other.datastoreArn) return false
        if (datastoreId != other.datastoreId) return false
        if (datastoreName != other.datastoreName) return false
        if (datastoreStatus != other.datastoreStatus) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The timestamp when the data store was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) for the data store.
         */
        public var datastoreArn: kotlin.String? = null
        /**
         * The data store identifier.
         */
        public var datastoreId: kotlin.String? = null
        /**
         * The data store name.
         */
        public var datastoreName: kotlin.String? = null
        /**
         * The data store status.
         */
        public var datastoreStatus: aws.sdk.kotlin.services.medicalimaging.model.DatastoreStatus? = null
        /**
         * The timestamp when the data store was last updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.DatastoreSummary) : this() {
            this.createdAt = x.createdAt
            this.datastoreArn = x.datastoreArn
            this.datastoreId = x.datastoreId
            this.datastoreName = x.datastoreName
            this.datastoreStatus = x.datastoreStatus
            this.updatedAt = x.updatedAt
        }

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

        internal fun correctErrors(): Builder {
            if (datastoreId == null) datastoreId = ""
            if (datastoreName == null) datastoreName = ""
            if (datastoreStatus == null) datastoreStatus = DatastoreStatus.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy