
commonMain.aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes.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
/**
* Contains status components of a Gremlin query.
*/
public class GremlinQueryStatusAttributes private constructor(builder: Builder) {
/**
* Attributes of the Gremlin query status.
*/
public val attributes: aws.smithy.kotlin.runtime.content.Document? = builder.attributes
/**
* The HTTP response code returned fro the Gremlin query request..
*/
public val code: kotlin.Int? = builder.code
/**
* The status message.
*/
public val message: kotlin.String? = builder.message
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GremlinQueryStatusAttributes(")
append("attributes=$attributes,")
append("code=$code,")
append("message=$message")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributes?.hashCode() ?: 0
result = 31 * result + (code ?: 0)
result = 31 * result + (message?.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 GremlinQueryStatusAttributes
if (attributes != other.attributes) return false
if (code != other.code) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Attributes of the Gremlin query status.
*/
public var attributes: aws.smithy.kotlin.runtime.content.Document? = null
/**
* The HTTP response code returned fro the Gremlin query request..
*/
public var code: kotlin.Int? = null
/**
* The status message.
*/
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes) : this() {
this.attributes = x.attributes
this.code = x.code
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.GremlinQueryStatusAttributes = GremlinQueryStatusAttributes(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy