
commonMain.aws.sdk.kotlin.services.honeycode.model.StartTableDataImportJobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.honeycode.model
public class StartTableDataImportJobResponse private constructor(builder: Builder) {
/**
* The id that is assigned to this import job. Future requests to find out the status of this import job need to send this id in the appropriate parameter in the request.
*/
public val jobId: kotlin.String = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
/**
* The status of the import job immediately after submitting the request.
*/
public val jobStatus: aws.sdk.kotlin.services.honeycode.model.TableDataImportJobStatus = requireNotNull(builder.jobStatus) { "A non-null value must be provided for jobStatus" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.honeycode.model.StartTableDataImportJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartTableDataImportJobResponse(")
append("jobId=$jobId,")
append("jobStatus=$jobStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobId.hashCode()
result = 31 * result + (jobStatus.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 StartTableDataImportJobResponse
if (jobId != other.jobId) return false
if (jobStatus != other.jobStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.honeycode.model.StartTableDataImportJobResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The id that is assigned to this import job. Future requests to find out the status of this import job need to send this id in the appropriate parameter in the request.
*/
public var jobId: kotlin.String? = null
/**
* The status of the import job immediately after submitting the request.
*/
public var jobStatus: aws.sdk.kotlin.services.honeycode.model.TableDataImportJobStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.honeycode.model.StartTableDataImportJobResponse) : this() {
this.jobId = x.jobId
this.jobStatus = x.jobStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.honeycode.model.StartTableDataImportJobResponse = StartTableDataImportJobResponse(this)
internal fun correctErrors(): Builder {
if (jobId == null) jobId = ""
if (jobStatus == null) jobStatus = TableDataImportJobStatus.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy