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

commonMain.aws.sdk.kotlin.services.redshift.model.ClusterVersion.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

/**
 * Describes a cluster version, including the parameter group family and description of the version.
 */
public class ClusterVersion private constructor(builder: Builder) {
    /**
     * The name of the cluster parameter group family for the cluster.
     */
    public val clusterParameterGroupFamily: kotlin.String? = builder.clusterParameterGroupFamily
    /**
     * The version number used by the cluster.
     */
    public val clusterVersion: kotlin.String? = builder.clusterVersion
    /**
     * The description of the cluster version.
     */
    public val description: kotlin.String? = builder.description

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

    override fun toString(): kotlin.String = buildString {
        append("ClusterVersion(")
        append("clusterParameterGroupFamily=$clusterParameterGroupFamily,")
        append("clusterVersion=$clusterVersion,")
        append("description=$description")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clusterParameterGroupFamily?.hashCode() ?: 0
        result = 31 * result + (clusterVersion?.hashCode() ?: 0)
        result = 31 * result + (description?.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 ClusterVersion

        if (clusterParameterGroupFamily != other.clusterParameterGroupFamily) return false
        if (clusterVersion != other.clusterVersion) return false
        if (description != other.description) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the cluster parameter group family for the cluster.
         */
        public var clusterParameterGroupFamily: kotlin.String? = null
        /**
         * The version number used by the cluster.
         */
        public var clusterVersion: kotlin.String? = null
        /**
         * The description of the cluster version.
         */
        public var description: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.ClusterVersion) : this() {
            this.clusterParameterGroupFamily = x.clusterParameterGroupFamily
            this.clusterVersion = x.clusterVersion
            this.description = x.description
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy