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

commonMain.aws.sdk.kotlin.services.medicalimaging.model.DatastoreProperties.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

/**
 * The properties associated with the data store.
 */
public class DatastoreProperties 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 Amazon Resource Name (ARN) assigned to the Key Management Service (KMS) key for accessing encrypted data.
     */
    public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
    /**
     * 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.DatastoreProperties = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DatastoreProperties(")
        append("createdAt=$createdAt,")
        append("datastoreArn=$datastoreArn,")
        append("datastoreId=$datastoreId,")
        append("datastoreName=$datastoreName,")
        append("datastoreStatus=$datastoreStatus,")
        append("kmsKeyArn=$kmsKeyArn,")
        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 + (kmsKeyArn?.hashCode() ?: 0)
        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 DatastoreProperties

        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 (kmsKeyArn != other.kmsKeyArn) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.DatastoreProperties = 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 Amazon Resource Name (ARN) assigned to the Key Management Service (KMS) key for accessing encrypted data.
         */
        public var kmsKeyArn: kotlin.String? = 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.DatastoreProperties) : this() {
            this.createdAt = x.createdAt
            this.datastoreArn = x.datastoreArn
            this.datastoreId = x.datastoreId
            this.datastoreName = x.datastoreName
            this.datastoreStatus = x.datastoreStatus
            this.kmsKeyArn = x.kmsKeyArn
            this.updatedAt = x.updatedAt
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.DatastoreProperties = DatastoreProperties(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