
commonMain.aws.sdk.kotlin.services.neptunedata.model.GetLoaderJobStatusRequest.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 GetLoaderJobStatusRequest private constructor(builder: Builder) {
/**
* Flag indicating whether or not to include details beyond the overall status (`TRUE` or `FALSE`; the default is `FALSE`).
*/
public val details: kotlin.Boolean? = builder.details
/**
* Flag indicating whether or not to include a list of errors encountered (`TRUE` or `FALSE`; the default is `FALSE`).
*
* The list of errors is paged. The `page` and `errorsPerPage` parameters allow you to page through all the errors.
*/
public val errors: kotlin.Boolean? = builder.errors
/**
* The number of errors returned in each page (a positive integer; the default is `10`). Only valid when the `errors` parameter set to `TRUE`.
*/
public val errorsPerPage: kotlin.Int? = builder.errorsPerPage
/**
* The load ID of the load job to get the status of.
*/
public val loadId: kotlin.String? = builder.loadId
/**
* The error page number (a positive integer; the default is `1`). Only valid when the `errors` parameter is set to `TRUE`.
*/
public val page: kotlin.Int? = builder.page
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.GetLoaderJobStatusRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLoaderJobStatusRequest(")
append("details=$details,")
append("errors=$errors,")
append("errorsPerPage=$errorsPerPage,")
append("loadId=$loadId,")
append("page=$page")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = details?.hashCode() ?: 0
result = 31 * result + (errors?.hashCode() ?: 0)
result = 31 * result + (errorsPerPage ?: 0)
result = 31 * result + (loadId?.hashCode() ?: 0)
result = 31 * result + (page ?: 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 GetLoaderJobStatusRequest
if (details != other.details) return false
if (errors != other.errors) return false
if (errorsPerPage != other.errorsPerPage) return false
if (loadId != other.loadId) return false
if (page != other.page) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.GetLoaderJobStatusRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Flag indicating whether or not to include details beyond the overall status (`TRUE` or `FALSE`; the default is `FALSE`).
*/
public var details: kotlin.Boolean? = null
/**
* Flag indicating whether or not to include a list of errors encountered (`TRUE` or `FALSE`; the default is `FALSE`).
*
* The list of errors is paged. The `page` and `errorsPerPage` parameters allow you to page through all the errors.
*/
public var errors: kotlin.Boolean? = null
/**
* The number of errors returned in each page (a positive integer; the default is `10`). Only valid when the `errors` parameter set to `TRUE`.
*/
public var errorsPerPage: kotlin.Int? = null
/**
* The load ID of the load job to get the status of.
*/
public var loadId: kotlin.String? = null
/**
* The error page number (a positive integer; the default is `1`). Only valid when the `errors` parameter is set to `TRUE`.
*/
public var page: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.GetLoaderJobStatusRequest) : this() {
this.details = x.details
this.errors = x.errors
this.errorsPerPage = x.errorsPerPage
this.loadId = x.loadId
this.page = x.page
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.GetLoaderJobStatusRequest = GetLoaderJobStatusRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy