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

commonMain.aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinQueryResponse.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
import aws.smithy.kotlin.runtime.content.Document

public class ExecuteGremlinQueryResponse private constructor(builder: Builder) {
    /**
     * Metadata about the Gremlin query.
     */
    public val meta: aws.smithy.kotlin.runtime.content.Document? = builder.meta
    /**
     * The unique identifier of the Gremlin query.
     */
    public val requestId: kotlin.String? = builder.requestId
    /**
     * The Gremlin query output from the server.
     */
    public val result: aws.smithy.kotlin.runtime.content.Document? = builder.result
    /**
     * The status of the Gremlin query.
     */
    public val status: aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("ExecuteGremlinQueryResponse(")
        append("meta=$meta,")
        append("requestId=$requestId,")
        append("result=$result,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = meta?.hashCode() ?: 0
        result = 31 * result + (requestId?.hashCode() ?: 0)
        result = 31 * result + (result?.hashCode() ?: 0)
        result = 31 * result + (status?.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 ExecuteGremlinQueryResponse

        if (meta != other.meta) return false
        if (requestId != other.requestId) return false
        if (result != other.result) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Metadata about the Gremlin query.
         */
        public var meta: aws.smithy.kotlin.runtime.content.Document? = null
        /**
         * The unique identifier of the Gremlin query.
         */
        public var requestId: kotlin.String? = null
        /**
         * The Gremlin query output from the server.
         */
        public var result: aws.smithy.kotlin.runtime.content.Document? = null
        /**
         * The status of the Gremlin query.
         */
        public var status: aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinQueryResponse) : this() {
            this.meta = x.meta
            this.requestId = x.requestId
            this.result = x.result
            this.status = x.status
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes] inside the given [block]
         */
        public fun status(block: aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes.Builder.() -> kotlin.Unit) {
            this.status = aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy