
commonMain.aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummaryValueMap.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.time.Instant
/**
* Payload for an RDF graph summary response.
*/
public class RdfGraphSummaryValueMap private constructor(builder: Builder) {
/**
* The graph summary of an RDF graph. See [Graph summary response for an RDF graph](https://docs.aws.amazon.com/neptune/latest/userguide/neptune-graph-summary.html#neptune-graph-summary-rdf-response).
*/
public val graphSummary: aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummary? = builder.graphSummary
/**
* The timestamp, in ISO 8601 format, of the time at which Neptune last computed statistics.
*/
public val lastStatisticsComputationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastStatisticsComputationTime
/**
* The version of this graph summary response.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummaryValueMap = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RdfGraphSummaryValueMap(")
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 RdfGraphSummaryValueMap
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.neptunedata.model.RdfGraphSummaryValueMap = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The graph summary of an RDF graph. See [Graph summary response for an RDF graph](https://docs.aws.amazon.com/neptune/latest/userguide/neptune-graph-summary.html#neptune-graph-summary-rdf-response).
*/
public var graphSummary: aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummary? = null
/**
* The timestamp, in ISO 8601 format, of the time at which Neptune last computed statistics.
*/
public var lastStatisticsComputationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The version of this graph summary response.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummaryValueMap) : this() {
this.graphSummary = x.graphSummary
this.lastStatisticsComputationTime = x.lastStatisticsComputationTime
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummaryValueMap = RdfGraphSummaryValueMap(this)
/**
* construct an [aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummary] inside the given [block]
*/
public fun graphSummary(block: aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummary.Builder.() -> kotlin.Unit) {
this.graphSummary = aws.sdk.kotlin.services.neptunedata.model.RdfGraphSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy