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

commonMain.aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinExplainQueryResponse.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

public class ExecuteGremlinExplainQueryResponse private constructor(builder: Builder) {
    /**
     * A text blob containing the Gremlin explain result, as described in [Tuning Gremlin queries](https://docs.aws.amazon.com/neptune/latest/userguide/gremlin-traversal-tuning.html).
     */
    public val output: kotlin.ByteArray? = builder.output

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

    override fun toString(): kotlin.String = buildString {
        append("ExecuteGremlinExplainQueryResponse(")
        append("output=$output")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = output?.contentHashCode() ?: 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 ExecuteGremlinExplainQueryResponse

        if (output != null) {
            if (other.output == null) return false
            if (!output.contentEquals(other.output)) return false
        } else if (other.output != null) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A text blob containing the Gremlin explain result, as described in [Tuning Gremlin queries](https://docs.aws.amazon.com/neptune/latest/userguide/gremlin-traversal-tuning.html).
         */
        public var output: kotlin.ByteArray? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinExplainQueryResponse) : this() {
            this.output = x.output
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy