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

commonMain.aws.sdk.kotlin.services.finspace.model.CreateKxDatabaseRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.finspace.model



public class CreateKxDatabaseRequest private constructor(builder: Builder) {
    /**
     * A token that ensures idempotency. This token expires in 10 minutes.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The name of the kdb database.
     */
    public val databaseName: kotlin.String? = builder.databaseName
    /**
     * A description of the database.
     */
    public val description: kotlin.String? = builder.description
    /**
     * A unique identifier for the kdb environment.
     */
    public val environmentId: kotlin.String? = builder.environmentId
    /**
     * A list of key-value pairs to label the kdb database. You can add up to 50 tags to your kdb database
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateKxDatabaseRequest(")
        append("clientToken=$clientToken,")
        append("databaseName=$databaseName,")
        append("description=$description,")
        append("environmentId=$environmentId,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (databaseName?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (environmentId?.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 CreateKxDatabaseRequest

        if (clientToken != other.clientToken) return false
        if (databaseName != other.databaseName) return false
        if (description != other.description) return false
        if (environmentId != other.environmentId) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * A token that ensures idempotency. This token expires in 10 minutes.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The name of the kdb database.
         */
        public var databaseName: kotlin.String? = null
        /**
         * A description of the database.
         */
        public var description: kotlin.String? = null
        /**
         * A unique identifier for the kdb environment.
         */
        public var environmentId: kotlin.String? = null
        /**
         * A list of key-value pairs to label the kdb database. You can add up to 50 tags to your kdb database
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.CreateKxDatabaseRequest) : this() {
            this.clientToken = x.clientToken
            this.databaseName = x.databaseName
            this.description = x.description
            this.environmentId = x.environmentId
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy