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

commonMain.aws.sdk.kotlin.services.neptunedata.model.DeletePropertygraphStatisticsResponse.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 DeletePropertygraphStatisticsResponse private constructor(builder: Builder) {
    /**
     * The deletion payload.
     */
    public val payload: aws.sdk.kotlin.services.neptunedata.model.DeleteStatisticsValueMap? = builder.payload
    /**
     * The cancel status.
     */
    public val status: kotlin.String? = builder.status
    /**
     * The HTTP response code: 200 if the delete was successful, or 204 if there were no statistics to delete.
     */
    public val statusCode: kotlin.Int? = builder.statusCode

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

    override fun toString(): kotlin.String = buildString {
        append("DeletePropertygraphStatisticsResponse(")
        append("payload=$payload,")
        append("status=$status,")
        append("statusCode=$statusCode")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = payload?.hashCode() ?: 0
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusCode ?: 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 DeletePropertygraphStatisticsResponse

        if (payload != other.payload) return false
        if (status != other.status) return false
        if (statusCode != other.statusCode) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The deletion payload.
         */
        public var payload: aws.sdk.kotlin.services.neptunedata.model.DeleteStatisticsValueMap? = null
        /**
         * The cancel status.
         */
        public var status: kotlin.String? = null
        /**
         * The HTTP response code: 200 if the delete was successful, or 204 if there were no statistics to delete.
         */
        public var statusCode: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.DeletePropertygraphStatisticsResponse) : this() {
            this.payload = x.payload
            this.status = x.status
            this.statusCode = x.statusCode
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy