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

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

There is a newer version: 1.4.1
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

public class CreateDatastoreRequest private constructor(builder: Builder) {
    /**
     * A unique identifier for API idempotency.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The data store name.
     */
    public val datastoreName: kotlin.String? = builder.datastoreName
    /**
     * 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 tags provided when creating a data store.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateDatastoreRequest(")
        append("clientToken=$clientToken,")
        append("datastoreName=$datastoreName,")
        append("kmsKeyArn=$kmsKeyArn,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (datastoreName?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyArn?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateDatastoreRequest

        if (clientToken != other.clientToken) return false
        if (datastoreName != other.datastoreName) return false
        if (kmsKeyArn != other.kmsKeyArn) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique identifier for API idempotency.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The data store name.
         */
        public var datastoreName: kotlin.String? = 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 tags provided when creating a data store.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.CreateDatastoreRequest) : this() {
            this.clientToken = x.clientToken
            this.datastoreName = x.datastoreName
            this.kmsKeyArn = x.kmsKeyArn
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy