
commonMain.aws.sdk.kotlin.services.s3control.model.UpdateJobStatusResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class UpdateJobStatusResponse private constructor(builder: Builder) {
/**
* The ID for the job whose status was updated.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* The current status for the specified job.
*/
public val status: aws.sdk.kotlin.services.s3control.model.JobStatus? = builder.status
/**
* The reason that the specified job's status was updated.
*/
public val statusUpdateReason: kotlin.String? = builder.statusUpdateReason
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.UpdateJobStatusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateJobStatusResponse(")
append("jobId=$jobId,")
append("status=$status,")
append("statusUpdateReason=$statusUpdateReason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobId?.hashCode() ?: 0
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusUpdateReason?.hashCode() ?: 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 UpdateJobStatusResponse
if (jobId != other.jobId) return false
if (status != other.status) return false
if (statusUpdateReason != other.statusUpdateReason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.UpdateJobStatusResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ID for the job whose status was updated.
*/
public var jobId: kotlin.String? = null
/**
* The current status for the specified job.
*/
public var status: aws.sdk.kotlin.services.s3control.model.JobStatus? = null
/**
* The reason that the specified job's status was updated.
*/
public var statusUpdateReason: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.UpdateJobStatusResponse) : this() {
this.jobId = x.jobId
this.status = x.status
this.statusUpdateReason = x.statusUpdateReason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.UpdateJobStatusResponse = UpdateJobStatusResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy