commonMain.aws.sdk.kotlin.services.finspace.model.KxNode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspace-jvm Show documentation
Show all versions of finspace-jvm Show documentation
The AWS SDK for Kotlin client for finspace
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
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
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(")")
}
override fun hashCode(): kotlin.Int {
var result = availabilityZoneId?.hashCode() ?: 0
result = 31 * result + (launchTime?.hashCode() ?: 0)
result = 31 * result + (nodeId?.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
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.KxNode = Builder(this).apply(block).build()
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
@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
}
@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