
commonMain.aws.sdk.kotlin.services.neptunedata.model.StartLoaderJobResponse.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 StartLoaderJobResponse private constructor(builder: Builder) {
/**
* Contains a `loadId` name-value pair that provides an identifier for the load operation.
*/
public val payload: Map = requireNotNull(builder.payload) { "A non-null value must be provided for payload" }
/**
* The HTTP return code indicating the status of the load job.
*/
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.StartLoaderJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartLoaderJobResponse(")
append("payload=$payload,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = payload.hashCode()
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 StartLoaderJobResponse
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.StartLoaderJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains a `loadId` name-value pair that provides an identifier for the load operation.
*/
public var payload: Map? = null
/**
* The HTTP return code indicating the status of the load job.
*/
public var status: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.StartLoaderJobResponse) : this() {
this.payload = x.payload
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.StartLoaderJobResponse = StartLoaderJobResponse(this)
internal fun correctErrors(): Builder {
if (payload == null) payload = emptyMap()
if (status == null) status = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy