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

commonMain.aws.sdk.kotlin.services.datasync.model.TaskExecutionFilesFailedDetail.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datasync.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The number of objects that DataSync fails to prepare, transfer, verify, and delete during your task execution.
 *
 * Applies only to [Enhanced mode tasks](https://docs.aws.amazon.com/datasync/latest/userguide/choosing-task-mode.html).
 */
public class TaskExecutionFilesFailedDetail private constructor(builder: Builder) {
    /**
     * The number of objects that DataSync fails to delete during your task execution.
     */
    public val delete: kotlin.Long = builder.delete
    /**
     * The number of objects that DataSync fails to prepare during your task execution.
     */
    public val prepare: kotlin.Long = builder.prepare
    /**
     * The number of objects that DataSync fails to transfer during your task execution.
     */
    public val transfer: kotlin.Long = builder.transfer
    /**
     * The number of objects that DataSync fails to verify during your task execution.
     */
    public val verify: kotlin.Long = builder.verify

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

    override fun toString(): kotlin.String = buildString {
        append("TaskExecutionFilesFailedDetail(")
        append("delete=$delete,")
        append("prepare=$prepare,")
        append("transfer=$transfer,")
        append("verify=$verify")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = delete.hashCode()
        result = 31 * result + (prepare.hashCode())
        result = 31 * result + (transfer.hashCode())
        result = 31 * result + (verify.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 TaskExecutionFilesFailedDetail

        if (delete != other.delete) return false
        if (prepare != other.prepare) return false
        if (transfer != other.transfer) return false
        if (verify != other.verify) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The number of objects that DataSync fails to delete during your task execution.
         */
        public var delete: kotlin.Long = 0L
        /**
         * The number of objects that DataSync fails to prepare during your task execution.
         */
        public var prepare: kotlin.Long = 0L
        /**
         * The number of objects that DataSync fails to transfer during your task execution.
         */
        public var transfer: kotlin.Long = 0L
        /**
         * The number of objects that DataSync fails to verify during your task execution.
         */
        public var verify: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datasync.model.TaskExecutionFilesFailedDetail) : this() {
            this.delete = x.delete
            this.prepare = x.prepare
            this.transfer = x.transfer
            this.verify = x.verify
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy