
commonMain.aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinQueryRequest.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 ExecuteGremlinQueryRequest private constructor(builder: Builder) {
/**
* Using this API, you can run Gremlin queries in string format much as you can using the HTTP endpoint. The interface is compatible with whatever Gremlin version your DB cluster is using (see the [Tinkerpop client section](https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-client.html#best-practices-gremlin-java-latest) to determine which Gremlin releases your engine version supports).
*/
public val gremlinQuery: kotlin.String? = builder.gremlinQuery
/**
* If non-null, the query results are returned in a serialized response message in the format specified by this parameter. See the [GraphSON](https://tinkerpop.apache.org/docs/current/reference/#_graphson) section in the TinkerPop documentation for a list of the formats that are currently supported.
*/
public val serializer: kotlin.String? = builder.serializer
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinQueryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecuteGremlinQueryRequest(")
append("gremlinQuery=$gremlinQuery,")
append("serializer=$serializer")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gremlinQuery?.hashCode() ?: 0
result = 31 * result + (serializer?.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 ExecuteGremlinQueryRequest
if (gremlinQuery != other.gremlinQuery) return false
if (serializer != other.serializer) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinQueryRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Using this API, you can run Gremlin queries in string format much as you can using the HTTP endpoint. The interface is compatible with whatever Gremlin version your DB cluster is using (see the [Tinkerpop client section](https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-client.html#best-practices-gremlin-java-latest) to determine which Gremlin releases your engine version supports).
*/
public var gremlinQuery: kotlin.String? = null
/**
* If non-null, the query results are returned in a serialized response message in the format specified by this parameter. See the [GraphSON](https://tinkerpop.apache.org/docs/current/reference/#_graphson) section in the TinkerPop documentation for a list of the formats that are currently supported.
*/
public var serializer: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinQueryRequest) : this() {
this.gremlinQuery = x.gremlinQuery
this.serializer = x.serializer
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.ExecuteGremlinQueryRequest = ExecuteGremlinQueryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy