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

commonMain.aws.sdk.kotlin.services.neptunedata.model.GetEngineStatusResponse.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

public class GetEngineStatusResponse private constructor(builder: Builder) {
    /**
     * Set to the Neptune engine version running on your DB cluster. If this engine version has been manually patched since it was released, the version number is prefixed by `Patch-`.
     */
    public val dbEngineVersion: kotlin.String? = builder.dbEngineVersion
    /**
     * Set to `enabled` if the DFE engine is fully enabled, or to `viaQueryHint` (the default) if the DFE engine is only used with queries that have the `useDFE` query hint set to `true`.
     */
    public val dfeQueryEngine: kotlin.String? = builder.dfeQueryEngine
    /**
     * Contains status information about the features enabled on your DB cluster.
     */
    public val features: Map? = builder.features
    /**
     * Contains information about the Gremlin query language available on your cluster. Specifically, it contains a version field that specifies the current TinkerPop version being used by the engine.
     */
    public val gremlin: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion? = builder.gremlin
    /**
     * Contains Lab Mode settings being used by the engine.
     */
    public val labMode: Map? = builder.labMode
    /**
     * Contains information about the openCypher query language available on your cluster. Specifically, it contains a version field that specifies the current operCypher version being used by the engine.
     */
    public val opencypher: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion? = builder.opencypher
    /**
     * Set to `reader` if the instance is a read-replica, or to `writer` if the instance is the primary instance.
     */
    public val role: kotlin.String? = builder.role
    /**
     * If there are transactions being rolled back, this field is set to the number of such transactions. If there are none, the field doesn't appear at all.
     */
    public val rollingBackTrxCount: kotlin.Int? = builder.rollingBackTrxCount
    /**
     * Set to the start time of the earliest transaction being rolled back. If no transactions are being rolled back, the field doesn't appear at all.
     */
    public val rollingBackTrxEarliestStartTime: kotlin.String? = builder.rollingBackTrxEarliestStartTime
    /**
     * Contains information about the current settings on your DB cluster. For example, contains the current cluster query timeout setting (`clusterQueryTimeoutInMs`).
     */
    public val settings: Map? = builder.settings
    /**
     * Contains information about the SPARQL query language available on your cluster. Specifically, it contains a version field that specifies the current SPARQL version being used by the engine.
     */
    public val sparql: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion? = builder.sparql
    /**
     * Set to the UTC time at which the current server process started.
     */
    public val startTime: kotlin.String? = builder.startTime
    /**
     * Set to `healthy` if the instance is not experiencing problems. If the instance is recovering from a crash or from being rebooted and there are active transactions running from the latest server shutdown, status is set to `recovery`.
     */
    public val status: kotlin.String? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("GetEngineStatusResponse(")
        append("dbEngineVersion=$dbEngineVersion,")
        append("dfeQueryEngine=$dfeQueryEngine,")
        append("features=$features,")
        append("gremlin=$gremlin,")
        append("labMode=$labMode,")
        append("opencypher=$opencypher,")
        append("role=$role,")
        append("rollingBackTrxCount=$rollingBackTrxCount,")
        append("rollingBackTrxEarliestStartTime=$rollingBackTrxEarliestStartTime,")
        append("settings=$settings,")
        append("sparql=$sparql,")
        append("startTime=$startTime,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dbEngineVersion?.hashCode() ?: 0
        result = 31 * result + (dfeQueryEngine?.hashCode() ?: 0)
        result = 31 * result + (features?.hashCode() ?: 0)
        result = 31 * result + (gremlin?.hashCode() ?: 0)
        result = 31 * result + (labMode?.hashCode() ?: 0)
        result = 31 * result + (opencypher?.hashCode() ?: 0)
        result = 31 * result + (role?.hashCode() ?: 0)
        result = 31 * result + (rollingBackTrxCount ?: 0)
        result = 31 * result + (rollingBackTrxEarliestStartTime?.hashCode() ?: 0)
        result = 31 * result + (settings?.hashCode() ?: 0)
        result = 31 * result + (sparql?.hashCode() ?: 0)
        result = 31 * result + (startTime?.hashCode() ?: 0)
        result = 31 * result + (status?.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 GetEngineStatusResponse

        if (dbEngineVersion != other.dbEngineVersion) return false
        if (dfeQueryEngine != other.dfeQueryEngine) return false
        if (features != other.features) return false
        if (gremlin != other.gremlin) return false
        if (labMode != other.labMode) return false
        if (opencypher != other.opencypher) return false
        if (role != other.role) return false
        if (rollingBackTrxCount != other.rollingBackTrxCount) return false
        if (rollingBackTrxEarliestStartTime != other.rollingBackTrxEarliestStartTime) return false
        if (settings != other.settings) return false
        if (sparql != other.sparql) return false
        if (startTime != other.startTime) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Set to the Neptune engine version running on your DB cluster. If this engine version has been manually patched since it was released, the version number is prefixed by `Patch-`.
         */
        public var dbEngineVersion: kotlin.String? = null
        /**
         * Set to `enabled` if the DFE engine is fully enabled, or to `viaQueryHint` (the default) if the DFE engine is only used with queries that have the `useDFE` query hint set to `true`.
         */
        public var dfeQueryEngine: kotlin.String? = null
        /**
         * Contains status information about the features enabled on your DB cluster.
         */
        public var features: Map? = null
        /**
         * Contains information about the Gremlin query language available on your cluster. Specifically, it contains a version field that specifies the current TinkerPop version being used by the engine.
         */
        public var gremlin: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion? = null
        /**
         * Contains Lab Mode settings being used by the engine.
         */
        public var labMode: Map? = null
        /**
         * Contains information about the openCypher query language available on your cluster. Specifically, it contains a version field that specifies the current operCypher version being used by the engine.
         */
        public var opencypher: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion? = null
        /**
         * Set to `reader` if the instance is a read-replica, or to `writer` if the instance is the primary instance.
         */
        public var role: kotlin.String? = null
        /**
         * If there are transactions being rolled back, this field is set to the number of such transactions. If there are none, the field doesn't appear at all.
         */
        public var rollingBackTrxCount: kotlin.Int? = null
        /**
         * Set to the start time of the earliest transaction being rolled back. If no transactions are being rolled back, the field doesn't appear at all.
         */
        public var rollingBackTrxEarliestStartTime: kotlin.String? = null
        /**
         * Contains information about the current settings on your DB cluster. For example, contains the current cluster query timeout setting (`clusterQueryTimeoutInMs`).
         */
        public var settings: Map? = null
        /**
         * Contains information about the SPARQL query language available on your cluster. Specifically, it contains a version field that specifies the current SPARQL version being used by the engine.
         */
        public var sparql: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion? = null
        /**
         * Set to the UTC time at which the current server process started.
         */
        public var startTime: kotlin.String? = null
        /**
         * Set to `healthy` if the instance is not experiencing problems. If the instance is recovering from a crash or from being rebooted and there are active transactions running from the latest server shutdown, status is set to `recovery`.
         */
        public var status: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.GetEngineStatusResponse) : this() {
            this.dbEngineVersion = x.dbEngineVersion
            this.dfeQueryEngine = x.dfeQueryEngine
            this.features = x.features
            this.gremlin = x.gremlin
            this.labMode = x.labMode
            this.opencypher = x.opencypher
            this.role = x.role
            this.rollingBackTrxCount = x.rollingBackTrxCount
            this.rollingBackTrxEarliestStartTime = x.rollingBackTrxEarliestStartTime
            this.settings = x.settings
            this.sparql = x.sparql
            this.startTime = x.startTime
            this.status = x.status
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion] inside the given [block]
         */
        public fun gremlin(block: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion.Builder.() -> kotlin.Unit) {
            this.gremlin = aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion] inside the given [block]
         */
        public fun opencypher(block: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion.Builder.() -> kotlin.Unit) {
            this.opencypher = aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion] inside the given [block]
         */
        public fun sparql(block: aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion.Builder.() -> kotlin.Unit) {
            this.sparql = aws.sdk.kotlin.services.neptunedata.model.QueryLanguageVersion.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy