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

commonMain.aws.sdk.kotlin.services.neptunegraph.model.EdgeStructure.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.neptunegraph.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Contains information about an edge in a Neptune Analytics graph.
 */
public class EdgeStructure private constructor(builder: Builder) {
    /**
     * The number of instances of the edge in the graph.
     */
    public val count: kotlin.Long? = builder.count
    /**
     * A list of the properties associated with the edge.
     */
    public val edgeProperties: List? = builder.edgeProperties

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

    override fun toString(): kotlin.String = buildString {
        append("EdgeStructure(")
        append("count=$count,")
        append("edgeProperties=$edgeProperties")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = count?.hashCode() ?: 0
        result = 31 * result + (edgeProperties?.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 EdgeStructure

        if (count != other.count) return false
        if (edgeProperties != other.edgeProperties) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The number of instances of the edge in the graph.
         */
        public var count: kotlin.Long? = null
        /**
         * A list of the properties associated with the edge.
         */
        public var edgeProperties: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunegraph.model.EdgeStructure) : this() {
            this.count = x.count
            this.edgeProperties = x.edgeProperties
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy