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

commonMain.aws.sdk.kotlin.services.finspace.model.UpdateKxClusterCodeConfigurationRequest.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 UpdateKxClusterCodeConfigurationRequest 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 cluster.
     */
    public val clusterName: kotlin.String? = builder.clusterName
    /**
     * The structure of the customer code available within the running cluster.
     */
    public val code: aws.sdk.kotlin.services.finspace.model.CodeConfiguration? = builder.code
    /**
     * Specifies the key-value pairs to make them available inside the cluster.
     *
     * You cannot update this parameter for a `NO_RESTART` deployment.
     */
    public val commandLineArguments: List? = builder.commandLineArguments
    /**
     * The configuration that allows you to choose how you want to update the code on a cluster.
     */
    public val deploymentConfiguration: aws.sdk.kotlin.services.finspace.model.KxClusterCodeDeploymentConfiguration? = builder.deploymentConfiguration
    /**
     * A unique identifier of the kdb environment.
     */
    public val environmentId: kotlin.String? = builder.environmentId
    /**
     * Specifies a Q program that will be run at launch of a cluster. It is a relative path within *.zip* file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, `somedir/init.q`.
     *
     * You cannot update this parameter for a `NO_RESTART` deployment.
     */
    public val initializationScript: kotlin.String? = builder.initializationScript

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateKxClusterCodeConfigurationRequest(")
        append("clientToken=$clientToken,")
        append("clusterName=$clusterName,")
        append("code=$code,")
        append("commandLineArguments=$commandLineArguments,")
        append("deploymentConfiguration=$deploymentConfiguration,")
        append("environmentId=$environmentId,")
        append("initializationScript=$initializationScript")
        append(")")
    }

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

        if (clientToken != other.clientToken) return false
        if (clusterName != other.clusterName) return false
        if (code != other.code) return false
        if (commandLineArguments != other.commandLineArguments) return false
        if (deploymentConfiguration != other.deploymentConfiguration) return false
        if (environmentId != other.environmentId) return false
        if (initializationScript != other.initializationScript) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.UpdateKxClusterCodeConfigurationRequest = 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 cluster.
         */
        public var clusterName: kotlin.String? = null
        /**
         * The structure of the customer code available within the running cluster.
         */
        public var code: aws.sdk.kotlin.services.finspace.model.CodeConfiguration? = null
        /**
         * Specifies the key-value pairs to make them available inside the cluster.
         *
         * You cannot update this parameter for a `NO_RESTART` deployment.
         */
        public var commandLineArguments: List? = null
        /**
         * The configuration that allows you to choose how you want to update the code on a cluster.
         */
        public var deploymentConfiguration: aws.sdk.kotlin.services.finspace.model.KxClusterCodeDeploymentConfiguration? = null
        /**
         * A unique identifier of the kdb environment.
         */
        public var environmentId: kotlin.String? = null
        /**
         * Specifies a Q program that will be run at launch of a cluster. It is a relative path within *.zip* file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, `somedir/init.q`.
         *
         * You cannot update this parameter for a `NO_RESTART` deployment.
         */
        public var initializationScript: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.UpdateKxClusterCodeConfigurationRequest) : this() {
            this.clientToken = x.clientToken
            this.clusterName = x.clusterName
            this.code = x.code
            this.commandLineArguments = x.commandLineArguments
            this.deploymentConfiguration = x.deploymentConfiguration
            this.environmentId = x.environmentId
            this.initializationScript = x.initializationScript
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.finspace.model.CodeConfiguration] inside the given [block]
         */
        public fun code(block: aws.sdk.kotlin.services.finspace.model.CodeConfiguration.Builder.() -> kotlin.Unit) {
            this.code = aws.sdk.kotlin.services.finspace.model.CodeConfiguration.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.finspace.model.KxClusterCodeDeploymentConfiguration] inside the given [block]
         */
        public fun deploymentConfiguration(block: aws.sdk.kotlin.services.finspace.model.KxClusterCodeDeploymentConfiguration.Builder.() -> kotlin.Unit) {
            this.deploymentConfiguration = aws.sdk.kotlin.services.finspace.model.KxClusterCodeDeploymentConfiguration.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy