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

commonMain.aws.sdk.kotlin.services.neptunegraph.model.GetGraphSummaryResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.neptunegraph.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class GetGraphSummaryResponse private constructor(builder: Builder) {
    /**
     * The graph summary.
     */
    public val graphSummary: aws.sdk.kotlin.services.neptunegraph.model.GraphDataSummary? = builder.graphSummary
    /**
     * The timestamp, in ISO 8601 format, of the time at which Neptune Analytics last computed statistics.
     */
    public val lastStatisticsComputationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastStatisticsComputationTime
    /**
     * Display the version of this tool.
     */
    public val version: kotlin.String? = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("GetGraphSummaryResponse(")
        append("graphSummary=$graphSummary,")
        append("lastStatisticsComputationTime=$lastStatisticsComputationTime,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = graphSummary?.hashCode() ?: 0
        result = 31 * result + (lastStatisticsComputationTime?.hashCode() ?: 0)
        result = 31 * result + (version?.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 GetGraphSummaryResponse

        if (graphSummary != other.graphSummary) return false
        if (lastStatisticsComputationTime != other.lastStatisticsComputationTime) return false
        if (version != other.version) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The graph summary.
         */
        public var graphSummary: aws.sdk.kotlin.services.neptunegraph.model.GraphDataSummary? = null
        /**
         * The timestamp, in ISO 8601 format, of the time at which Neptune Analytics last computed statistics.
         */
        public var lastStatisticsComputationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Display the version of this tool.
         */
        public var version: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunegraph.model.GetGraphSummaryResponse) : this() {
            this.graphSummary = x.graphSummary
            this.lastStatisticsComputationTime = x.lastStatisticsComputationTime
            this.version = x.version
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy