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

commonMain.aws.sdk.kotlin.services.neptunedata.model.CancelOpenCypherQueryRequest.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 CancelOpenCypherQueryRequest private constructor(builder: Builder) {
    /**
     * The unique ID of the openCypher query to cancel.
     */
    public val queryId: kotlin.String? = builder.queryId
    /**
     * If set to `TRUE`, causes the cancelation of the openCypher query to happen silently.
     */
    public val silent: kotlin.Boolean? = builder.silent

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

    override fun toString(): kotlin.String = buildString {
        append("CancelOpenCypherQueryRequest(")
        append("queryId=$queryId,")
        append("silent=$silent")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = queryId?.hashCode() ?: 0
        result = 31 * result + (silent?.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 CancelOpenCypherQueryRequest

        if (queryId != other.queryId) return false
        if (silent != other.silent) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique ID of the openCypher query to cancel.
         */
        public var queryId: kotlin.String? = null
        /**
         * If set to `TRUE`, causes the cancelation of the openCypher query to happen silently.
         */
        public var silent: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.CancelOpenCypherQueryRequest) : this() {
            this.queryId = x.queryId
            this.silent = x.silent
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy