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

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



/**
 * The structure containing the metadata of the attached clusters.
 */
public class KxAttachedCluster private constructor(builder: Builder) {
    /**
     * A unique name for the attached cluster.
     */
    public val clusterName: kotlin.String? = builder.clusterName
    /**
     * The status of the attached cluster.
     * + PENDING – The cluster is pending creation.
     * + CREATING – The cluster creation process is in progress.
     * + CREATE_FAILED – The cluster creation process has failed.
     * + RUNNING – The cluster creation process is running.
     * + UPDATING – The cluster is in the process of being updated.
     * + DELETING – The cluster is in the process of being deleted.
     * + DELETED – The cluster has been deleted.
     * + DELETE_FAILED – The cluster failed to delete.
     */
    public val clusterStatus: aws.sdk.kotlin.services.finspace.model.KxClusterStatus? = builder.clusterStatus
    /**
     * Specifies the type of cluster. The volume for TP and RDB cluster types will be used for TP logs.
     */
    public val clusterType: aws.sdk.kotlin.services.finspace.model.KxClusterType? = builder.clusterType

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

    override fun toString(): kotlin.String = buildString {
        append("KxAttachedCluster(")
        append("clusterName=$clusterName,")
        append("clusterStatus=$clusterStatus,")
        append("clusterType=$clusterType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clusterName?.hashCode() ?: 0
        result = 31 * result + (clusterStatus?.hashCode() ?: 0)
        result = 31 * result + (clusterType?.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 KxAttachedCluster

        if (clusterName != other.clusterName) return false
        if (clusterStatus != other.clusterStatus) return false
        if (clusterType != other.clusterType) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique name for the attached cluster.
         */
        public var clusterName: kotlin.String? = null
        /**
         * The status of the attached cluster.
         * + PENDING – The cluster is pending creation.
         * + CREATING – The cluster creation process is in progress.
         * + CREATE_FAILED – The cluster creation process has failed.
         * + RUNNING – The cluster creation process is running.
         * + UPDATING – The cluster is in the process of being updated.
         * + DELETING – The cluster is in the process of being deleted.
         * + DELETED – The cluster has been deleted.
         * + DELETE_FAILED – The cluster failed to delete.
         */
        public var clusterStatus: aws.sdk.kotlin.services.finspace.model.KxClusterStatus? = null
        /**
         * Specifies the type of cluster. The volume for TP and RDB cluster types will be used for TP logs.
         */
        public var clusterType: aws.sdk.kotlin.services.finspace.model.KxClusterType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.KxAttachedCluster) : this() {
            this.clusterName = x.clusterName
            this.clusterStatus = x.clusterStatus
            this.clusterType = x.clusterType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy