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

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

There is a newer version: 1.4.1
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Specifies the level of detail for a particular aspect of your DataSync [task report](https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html).
 */
public class ReportOverride private constructor(builder: Builder) {
    /**
     * Specifies whether your task report includes errors only or successes and errors.
     *
     * For example, your report might mostly include only what didn't go well in your transfer (`ERRORS_ONLY`). At the same time, you want to verify that your [task filter](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (`SUCCESSES_AND_ERRORS`).
     */
    public val reportLevel: aws.sdk.kotlin.services.datasync.model.ReportLevel? = builder.reportLevel

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

    override fun toString(): kotlin.String = buildString {
        append("ReportOverride(")
        append("reportLevel=$reportLevel")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = reportLevel?.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 ReportOverride

        if (reportLevel != other.reportLevel) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies whether your task report includes errors only or successes and errors.
         *
         * For example, your report might mostly include only what didn't go well in your transfer (`ERRORS_ONLY`). At the same time, you want to verify that your [task filter](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (`SUCCESSES_AND_ERRORS`).
         */
        public var reportLevel: aws.sdk.kotlin.services.datasync.model.ReportLevel? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datasync.model.ReportOverride) : this() {
            this.reportLevel = x.reportLevel
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy