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

commonMain.aws.sdk.kotlin.services.finspace.model.UpdateKxClusterDatabasesRequest.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 UpdateKxClusterDatabasesRequest private constructor(builder: Builder) {
    /**
     * A token that ensures idempotency. This token expires in 10 minutes.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * A unique name for the cluster that you want to modify.
     */
    public val clusterName: kotlin.String? = requireNotNull(builder.clusterName) { "A non-null value must be provided for clusterName" }
    /**
     * The structure of databases mounted on the cluster.
     */
    public val databases: List? = builder.databases
    /**
     * The unique identifier of a kdb environment.
     */
    public val environmentId: kotlin.String? = requireNotNull(builder.environmentId) { "A non-null value must be provided for environmentId" }

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateKxClusterDatabasesRequest(")
        append("clientToken=$clientToken,")
        append("clusterName=$clusterName,")
        append("databases=$databases,")
        append("environmentId=$environmentId")
        append(")")
    }

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

        if (clientToken != other.clientToken) return false
        if (clusterName != other.clusterName) return false
        if (databases != other.databases) return false
        if (environmentId != other.environmentId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.UpdateKxClusterDatabasesRequest = 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
        /**
         * A unique name for the cluster that you want to modify.
         */
        public var clusterName: kotlin.String? = null
        /**
         * The structure of databases mounted on the cluster.
         */
        public var databases: List? = null
        /**
         * The unique identifier of a kdb environment.
         */
        public var environmentId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.UpdateKxClusterDatabasesRequest) : this() {
            this.clientToken = x.clientToken
            this.clusterName = x.clusterName
            this.databases = x.databases
            this.environmentId = x.environmentId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy