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

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

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

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



public class UpdateJobPriorityResponse private constructor(builder: Builder) {
    /**
     * The ID for the job whose priority Amazon S3 updated.
     */
    public val jobId: kotlin.String = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
    /**
     * The new priority assigned to the specified 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.UpdateJobPriorityResponse = Builder().apply(block).build()
    }

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

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

        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.UpdateJobPriorityResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The ID for the job whose priority Amazon S3 updated.
         */
        public var jobId: kotlin.String? = null
        /**
         * The new priority assigned to the specified job.
         */
        public var priority: kotlin.Int = 0

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

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

        internal fun correctErrors(): Builder {
            if (jobId == null) jobId = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy