
commonMain.aws.sdk.kotlin.services.neptunedata.model.ManageSparqlStatisticsResponse.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 ManageSparqlStatisticsResponse private constructor(builder: Builder) {
/**
* This is only returned for refresh mode.
*/
public val payload: aws.sdk.kotlin.services.neptunedata.model.RefreshStatisticsIdMap? = builder.payload
/**
* The HTTP return code of the request. If the request succeeded, the code is 200.
*/
public val status: kotlin.String = requireNotNull(builder.status) { "A non-null value must be provided for status" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.ManageSparqlStatisticsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ManageSparqlStatisticsResponse(")
append("payload=$payload,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = payload?.hashCode() ?: 0
result = 31 * result + (status.hashCode())
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 ManageSparqlStatisticsResponse
if (payload != other.payload) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.ManageSparqlStatisticsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This is only returned for refresh mode.
*/
public var payload: aws.sdk.kotlin.services.neptunedata.model.RefreshStatisticsIdMap? = null
/**
* The HTTP return code of the request. If the request succeeded, the code is 200.
*/
public var status: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.ManageSparqlStatisticsResponse) : this() {
this.payload = x.payload
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.ManageSparqlStatisticsResponse = ManageSparqlStatisticsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.neptunedata.model.RefreshStatisticsIdMap] inside the given [block]
*/
public fun payload(block: aws.sdk.kotlin.services.neptunedata.model.RefreshStatisticsIdMap.Builder.() -> kotlin.Unit) {
this.payload = aws.sdk.kotlin.services.neptunedata.model.RefreshStatisticsIdMap.invoke(block)
}
internal fun correctErrors(): Builder {
if (status == null) status = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy