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

commonMain.aws.sdk.kotlin.services.redshift.model.ModifyAquaConfigurationRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.redshift.model

import aws.smithy.kotlin.runtime.SdkDsl

public class ModifyAquaConfigurationRequest private constructor(builder: Builder) {
    /**
     * This parameter is retired. Amazon Redshift automatically determines whether to use AQUA (Advanced Query Accelerator).
     */
    public val aquaConfigurationStatus: aws.sdk.kotlin.services.redshift.model.AquaConfigurationStatus? = builder.aquaConfigurationStatus
    /**
     * The identifier of the cluster to be modified.
     */
    public val clusterIdentifier: kotlin.String? = builder.clusterIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("ModifyAquaConfigurationRequest(")
        append("aquaConfigurationStatus=$aquaConfigurationStatus,")
        append("clusterIdentifier=$clusterIdentifier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = aquaConfigurationStatus?.hashCode() ?: 0
        result = 31 * result + (clusterIdentifier?.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 ModifyAquaConfigurationRequest

        if (aquaConfigurationStatus != other.aquaConfigurationStatus) return false
        if (clusterIdentifier != other.clusterIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * This parameter is retired. Amazon Redshift automatically determines whether to use AQUA (Advanced Query Accelerator).
         */
        public var aquaConfigurationStatus: aws.sdk.kotlin.services.redshift.model.AquaConfigurationStatus? = null
        /**
         * The identifier of the cluster to be modified.
         */
        public var clusterIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.ModifyAquaConfigurationRequest) : this() {
            this.aquaConfigurationStatus = x.aquaConfigurationStatus
            this.clusterIdentifier = x.clusterIdentifier
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy