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

commonMain.aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinProfileQueryResponse.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 ExecuteGremlinProfileQueryResponse private constructor(builder: Builder) {
    /**
     * A text blob containing the Gremlin Profile result. See [Gremlin profile API in Neptune](https://docs.aws.amazon.com/neptune/latest/userguide/gremlin-profile-api.html) for details.
     */
    public val output: kotlin.ByteArray? = builder.output

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

    override fun toString(): kotlin.String = buildString {
        append("ExecuteGremlinProfileQueryResponse(")
        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 ExecuteGremlinProfileQueryResponse

        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.ExecuteGremlinProfileQueryResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A text blob containing the Gremlin Profile result. See [Gremlin profile API in Neptune](https://docs.aws.amazon.com/neptune/latest/userguide/gremlin-profile-api.html) for details.
         */
        public var output: kotlin.ByteArray? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy