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

commonMain.aws.sdk.kotlin.services.finspace.model.KxNode.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * A structure that stores metadata for a kdb node.
 */
public class KxNode private constructor(builder: Builder) {
    /**
     * The identifier of the availability zones where subnets for the environment are created.
     */
    public val availabilityZoneId: kotlin.String? = builder.availabilityZoneId
    /**
     * The time when a particular node is started. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
     */
    public val launchTime: aws.smithy.kotlin.runtime.time.Instant? = builder.launchTime
    /**
     * A unique identifier for the node.
     */
    public val nodeId: kotlin.String? = builder.nodeId
    /**
     * Specifies the status of the cluster nodes.
     * + `RUNNING` – The node is actively serving.
     * + `PROVISIONING` – The node is being prepared.
     */
    public val status: aws.sdk.kotlin.services.finspace.model.KxNodeStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("KxNode(")
        append("availabilityZoneId=$availabilityZoneId,")
        append("launchTime=$launchTime,")
        append("nodeId=$nodeId,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = availabilityZoneId?.hashCode() ?: 0
        result = 31 * result + (launchTime?.hashCode() ?: 0)
        result = 31 * result + (nodeId?.hashCode() ?: 0)
        result = 31 * result + (status?.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 KxNode

        if (availabilityZoneId != other.availabilityZoneId) return false
        if (launchTime != other.launchTime) return false
        if (nodeId != other.nodeId) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The identifier of the availability zones where subnets for the environment are created.
         */
        public var availabilityZoneId: kotlin.String? = null
        /**
         * The time when a particular node is started. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
         */
        public var launchTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A unique identifier for the node.
         */
        public var nodeId: kotlin.String? = null
        /**
         * Specifies the status of the cluster nodes.
         * + `RUNNING` – The node is actively serving.
         * + `PROVISIONING` – The node is being prepared.
         */
        public var status: aws.sdk.kotlin.services.finspace.model.KxNodeStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.KxNode) : this() {
            this.availabilityZoneId = x.availabilityZoneId
            this.launchTime = x.launchTime
            this.nodeId = x.nodeId
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy