
commonMain.aws.sdk.kotlin.services.neptunedata.model.GetGremlinQueryStatusResponse.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 GetGremlinQueryStatusResponse private constructor(builder: Builder) {
/**
* The evaluation status of the Gremlin query.
*/
public val queryEvalStats: aws.sdk.kotlin.services.neptunedata.model.QueryEvalStats? = builder.queryEvalStats
/**
* The ID of the query for which status is being returned.
*/
public val queryId: kotlin.String? = builder.queryId
/**
* The Gremlin query string.
*/
public val queryString: kotlin.String? = builder.queryString
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.GetGremlinQueryStatusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetGremlinQueryStatusResponse(")
append("queryEvalStats=$queryEvalStats,")
append("queryId=$queryId,")
append("queryString=$queryString")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = queryEvalStats?.hashCode() ?: 0
result = 31 * result + (queryId?.hashCode() ?: 0)
result = 31 * result + (queryString?.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 GetGremlinQueryStatusResponse
if (queryEvalStats != other.queryEvalStats) return false
if (queryId != other.queryId) return false
if (queryString != other.queryString) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.GetGremlinQueryStatusResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The evaluation status of the Gremlin query.
*/
public var queryEvalStats: aws.sdk.kotlin.services.neptunedata.model.QueryEvalStats? = null
/**
* The ID of the query for which status is being returned.
*/
public var queryId: kotlin.String? = null
/**
* The Gremlin query string.
*/
public var queryString: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.GetGremlinQueryStatusResponse) : this() {
this.queryEvalStats = x.queryEvalStats
this.queryId = x.queryId
this.queryString = x.queryString
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.GetGremlinQueryStatusResponse = GetGremlinQueryStatusResponse(this)
/**
* construct an [aws.sdk.kotlin.services.neptunedata.model.QueryEvalStats] inside the given [block]
*/
public fun queryEvalStats(block: aws.sdk.kotlin.services.neptunedata.model.QueryEvalStats.Builder.() -> kotlin.Unit) {
this.queryEvalStats = aws.sdk.kotlin.services.neptunedata.model.QueryEvalStats.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy