All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.s3control.model.UpdateJobStatusRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.s3control.model



public class UpdateJobStatusRequest private constructor(builder: Builder) {
    /**
     * The Amazon Web Services account ID associated with the S3 Batch Operations job.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * The ID of the job whose status you want to update.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * The status that you want to move the specified job to.
     */
    public val requestedJobStatus: aws.sdk.kotlin.services.s3control.model.RequestedJobStatus? = builder.requestedJobStatus
    /**
     * A description of the reason why you want to change the specified job's status. This field can be any string up to the maximum length.
     */
    public val statusUpdateReason: kotlin.String? = builder.statusUpdateReason

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.UpdateJobStatusRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateJobStatusRequest(")
        append("accountId=$accountId,")
        append("jobId=$jobId,")
        append("requestedJobStatus=$requestedJobStatus,")
        append("statusUpdateReason=$statusUpdateReason")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountId?.hashCode() ?: 0
        result = 31 * result + (jobId?.hashCode() ?: 0)
        result = 31 * result + (requestedJobStatus?.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 UpdateJobStatusRequest

        if (accountId != other.accountId) return false
        if (jobId != other.jobId) return false
        if (requestedJobStatus != other.requestedJobStatus) return false
        if (statusUpdateReason != other.statusUpdateReason) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.UpdateJobStatusRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The Amazon Web Services account ID associated with the S3 Batch Operations job.
         */
        public var accountId: kotlin.String? = null
        /**
         * The ID of the job whose status you want to update.
         */
        public var jobId: kotlin.String? = null
        /**
         * The status that you want to move the specified job to.
         */
        public var requestedJobStatus: aws.sdk.kotlin.services.s3control.model.RequestedJobStatus? = null
        /**
         * A description of the reason why you want to change the specified job's status. This field can be any string up to the maximum length.
         */
        public var statusUpdateReason: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3control.model.UpdateJobStatusRequest) : this() {
            this.accountId = x.accountId
            this.jobId = x.jobId
            this.requestedJobStatus = x.requestedJobStatus
            this.statusUpdateReason = x.statusUpdateReason
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.s3control.model.UpdateJobStatusRequest = UpdateJobStatusRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy