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

commonMain.aws.sdk.kotlin.services.finspace.model.CreateKxEnvironmentRequest.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

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateKxEnvironmentRequest private constructor(builder: Builder) {
    /**
     * A token that ensures idempotency. This token expires in 10 minutes.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * A description for the kdb environment.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The KMS key ID to encrypt your data in the FinSpace environment.
     */
    public val kmsKeyId: kotlin.String? = builder.kmsKeyId
    /**
     * The name of the kdb environment that you want to create.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A list of key-value pairs to label the kdb environment. You can add up to 50 tags to your kdb environment.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateKxEnvironmentRequest(")
        append("clientToken=$clientToken,")
        append("description=$description,")
        append("kmsKeyId=$kmsKeyId,")
        append("name=$name,")
        append("tags=$tags")
        append(")")
    }

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

        if (clientToken != other.clientToken) return false
        if (description != other.description) return false
        if (kmsKeyId != other.kmsKeyId) return false
        if (name != other.name) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A token that ensures idempotency. This token expires in 10 minutes.
         */
        public var clientToken: kotlin.String? = null
        /**
         * A description for the kdb environment.
         */
        public var description: kotlin.String? = null
        /**
         * The KMS key ID to encrypt your data in the FinSpace environment.
         */
        public var kmsKeyId: kotlin.String? = null
        /**
         * The name of the kdb environment that you want to create.
         */
        public var name: kotlin.String? = null
        /**
         * A list of key-value pairs to label the kdb environment. You can add up to 50 tags to your kdb environment.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.CreateKxEnvironmentRequest) : this() {
            this.clientToken = x.clientToken
            this.description = x.description
            this.kmsKeyId = x.kmsKeyId
            this.name = x.name
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy