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

commonMain.aws.sdk.kotlin.services.neptunegraph.model.GetQueryResponse.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

public class GetQueryResponse private constructor(builder: Builder) {
    /**
     * The number of milliseconds the query has been running.
     */
    public val elapsed: kotlin.Int? = builder.elapsed
    /**
     * The ID of the query in question.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The query in question.
     */
    public val queryString: kotlin.String? = builder.queryString
    /**
     * State of the query.
     */
    public val state: aws.sdk.kotlin.services.neptunegraph.model.QueryState? = builder.state
    /**
     * Indicates how long the query waited, in milliseconds.
     */
    public val waited: kotlin.Int? = builder.waited

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

    override fun toString(): kotlin.String = buildString {
        append("GetQueryResponse(")
        append("elapsed=$elapsed,")
        append("id=$id,")
        append("queryString=$queryString,")
        append("state=$state,")
        append("waited=$waited")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = elapsed ?: 0
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (queryString?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (waited ?: 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 GetQueryResponse

        if (elapsed != other.elapsed) return false
        if (id != other.id) return false
        if (queryString != other.queryString) return false
        if (state != other.state) return false
        if (waited != other.waited) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The number of milliseconds the query has been running.
         */
        public var elapsed: kotlin.Int? = null
        /**
         * The ID of the query in question.
         */
        public var id: kotlin.String? = null
        /**
         * The query in question.
         */
        public var queryString: kotlin.String? = null
        /**
         * State of the query.
         */
        public var state: aws.sdk.kotlin.services.neptunegraph.model.QueryState? = null
        /**
         * Indicates how long the query waited, in milliseconds.
         */
        public var waited: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunegraph.model.GetQueryResponse) : this() {
            this.elapsed = x.elapsed
            this.id = x.id
            this.queryString = x.queryString
            this.state = x.state
            this.waited = x.waited
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy