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

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

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

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



public class UpdateJobPriorityRequest 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 for the job whose priority you want to update.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * The priority you want to assign to this job.
     */
    public val priority: kotlin.Int? = builder.priority

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateJobPriorityRequest(")
        append("accountId=$accountId,")
        append("jobId=$jobId,")
        append("priority=$priority")
        append(")")
    }

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

        if (accountId != other.accountId) return false
        if (jobId != other.jobId) return false
        if (priority != other.priority) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.UpdateJobPriorityRequest = 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 for the job whose priority you want to update.
         */
        public var jobId: kotlin.String? = null
        /**
         * The priority you want to assign to this job.
         */
        public var priority: kotlin.Int? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy