
commonMain.aws.sdk.kotlin.services.neptunedata.model.ExecuteOpenCypherExplainQueryResponse.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 ExecuteOpenCypherExplainQueryResponse private constructor(builder: Builder) {
/**
* A text blob containing the openCypher `explain` results.
*/
public val results: kotlin.ByteArray = requireNotNull(builder.results) { "A non-null value must be provided for results" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.ExecuteOpenCypherExplainQueryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecuteOpenCypherExplainQueryResponse(")
append("results=$results")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = results.contentHashCode()
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 ExecuteOpenCypherExplainQueryResponse
if (results != null) {
if (other.results == null) return false
if (!results.contentEquals(other.results)) return false
} else if (other.results != null) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.ExecuteOpenCypherExplainQueryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A text blob containing the openCypher `explain` results.
*/
public var results: kotlin.ByteArray? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.ExecuteOpenCypherExplainQueryResponse) : this() {
this.results = x.results
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.ExecuteOpenCypherExplainQueryResponse = ExecuteOpenCypherExplainQueryResponse(this)
internal fun correctErrors(): Builder {
if (results == null) results = ByteArray(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy