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

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

/**
 * The configuration that allows you to choose how you want to update the databases on a cluster. Depending on the option you choose, you can reduce the time it takes to update the cluster.
 */
public class KxDeploymentConfiguration private constructor(builder: Builder) {
    /**
     * The type of deployment that you want on a cluster.
     * + ROLLING – This options updates the cluster by stopping the exiting q process and starting a new q process with updated configuration.
     * + NO_RESTART – This option updates the cluster without stopping the running q process. It is only available for `HDB` type cluster. This option is quicker as it reduces the turn around time to update configuration on a cluster. With this deployment mode, you cannot update the `initializationScript` and `commandLineArguments` parameters.
     */
    public val deploymentStrategy: aws.sdk.kotlin.services.finspace.model.KxDeploymentStrategy = requireNotNull(builder.deploymentStrategy) { "A non-null value must be provided for deploymentStrategy" }

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

    override fun toString(): kotlin.String = buildString {
        append("KxDeploymentConfiguration(")
        append("deploymentStrategy=$deploymentStrategy")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deploymentStrategy.hashCode()
        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 KxDeploymentConfiguration

        if (deploymentStrategy != other.deploymentStrategy) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The type of deployment that you want on a cluster.
         * + ROLLING – This options updates the cluster by stopping the exiting q process and starting a new q process with updated configuration.
         * + NO_RESTART – This option updates the cluster without stopping the running q process. It is only available for `HDB` type cluster. This option is quicker as it reduces the turn around time to update configuration on a cluster. With this deployment mode, you cannot update the `initializationScript` and `commandLineArguments` parameters.
         */
        public var deploymentStrategy: aws.sdk.kotlin.services.finspace.model.KxDeploymentStrategy? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.KxDeploymentConfiguration) : this() {
            this.deploymentStrategy = x.deploymentStrategy
        }

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

        internal fun correctErrors(): Builder {
            if (deploymentStrategy == null) deploymentStrategy = KxDeploymentStrategy.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy