
commonMain.aws.sdk.kotlin.services.neptunedata.model.GetPropertygraphSummaryResponse.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 GetPropertygraphSummaryResponse private constructor(builder: Builder) {
/**
* Payload containing the property graph summary response.
*/
public val payload: aws.sdk.kotlin.services.neptunedata.model.PropertygraphSummaryValueMap? = builder.payload
/**
* The HTTP return code of the request. If the request succeeded, the code is 200.
*/
public val statusCode: kotlin.Int? = builder.statusCode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.GetPropertygraphSummaryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPropertygraphSummaryResponse(")
append("payload=$payload,")
append("statusCode=$statusCode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = payload?.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 GetPropertygraphSummaryResponse
if (payload != other.payload) return false
if (statusCode != other.statusCode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.GetPropertygraphSummaryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Payload containing the property graph summary response.
*/
public var payload: aws.sdk.kotlin.services.neptunedata.model.PropertygraphSummaryValueMap? = null
/**
* The HTTP return code of the request. If the request succeeded, the code is 200.
*/
public var statusCode: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.GetPropertygraphSummaryResponse) : this() {
this.payload = x.payload
this.statusCode = x.statusCode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.GetPropertygraphSummaryResponse = GetPropertygraphSummaryResponse(this)
/**
* construct an [aws.sdk.kotlin.services.neptunedata.model.PropertygraphSummaryValueMap] inside the given [block]
*/
public fun payload(block: aws.sdk.kotlin.services.neptunedata.model.PropertygraphSummaryValueMap.Builder.() -> kotlin.Unit) {
this.payload = aws.sdk.kotlin.services.neptunedata.model.PropertygraphSummaryValueMap.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy