
commonMain.aws.sdk.kotlin.services.neptunedata.model.NodeStructure.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptunedata.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A node structure.
*/
public class NodeStructure private constructor(builder: Builder) {
/**
* Number of nodes that have this specific structure.
*/
public val count: kotlin.Long? = builder.count
/**
* A list of distinct outgoing edge labels present in this specific structure.
*/
public val distinctOutgoingEdgeLabels: List? = builder.distinctOutgoingEdgeLabels
/**
* A list of the node properties present in this specific structure.
*/
public val nodeProperties: List? = builder.nodeProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.NodeStructure = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NodeStructure(")
append("count=$count,")
append("distinctOutgoingEdgeLabels=$distinctOutgoingEdgeLabels,")
append("nodeProperties=$nodeProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = count?.hashCode() ?: 0
result = 31 * result + (distinctOutgoingEdgeLabels?.hashCode() ?: 0)
result = 31 * result + (nodeProperties?.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 NodeStructure
if (count != other.count) return false
if (distinctOutgoingEdgeLabels != other.distinctOutgoingEdgeLabels) return false
if (nodeProperties != other.nodeProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.NodeStructure = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Number of nodes that have this specific structure.
*/
public var count: kotlin.Long? = null
/**
* A list of distinct outgoing edge labels present in this specific structure.
*/
public var distinctOutgoingEdgeLabels: List? = null
/**
* A list of the node properties present in this specific structure.
*/
public var nodeProperties: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.NodeStructure) : this() {
this.count = x.count
this.distinctOutgoingEdgeLabels = x.distinctOutgoingEdgeLabels
this.nodeProperties = x.nodeProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.NodeStructure = NodeStructure(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy