commonMain.aws.sdk.kotlin.services.datasync.model.ReportOverrides.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasync-jvm Show documentation
Show all versions of datasync-jvm Show documentation
The AWS SDK for Kotlin client for DataSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datasync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The level of detail included in each aspect of your DataSync [task report](https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html).
*/
public class ReportOverrides private constructor(builder: Builder) {
/**
* Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you [configure your task](https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html) to delete data in the destination that isn't in the source.
*/
public val deleted: aws.sdk.kotlin.services.datasync.model.ReportOverride? = builder.deleted
/**
* Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer.
*/
public val skipped: aws.sdk.kotlin.services.datasync.model.ReportOverride? = builder.skipped
/**
* Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer.
*/
public val transferred: aws.sdk.kotlin.services.datasync.model.ReportOverride? = builder.transferred
/**
* Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer.
*/
public val verified: aws.sdk.kotlin.services.datasync.model.ReportOverride? = builder.verified
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.ReportOverrides = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReportOverrides(")
append("deleted=$deleted,")
append("skipped=$skipped,")
append("transferred=$transferred,")
append("verified=$verified")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deleted?.hashCode() ?: 0
result = 31 * result + (skipped?.hashCode() ?: 0)
result = 31 * result + (transferred?.hashCode() ?: 0)
result = 31 * result + (verified?.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 ReportOverrides
if (deleted != other.deleted) return false
if (skipped != other.skipped) return false
if (transferred != other.transferred) return false
if (verified != other.verified) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.ReportOverrides = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you [configure your task](https://docs.aws.amazon.com/datasync/latest/userguide/configure-metadata.html) to delete data in the destination that isn't in the source.
*/
public var deleted: aws.sdk.kotlin.services.datasync.model.ReportOverride? = null
/**
* Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer.
*/
public var skipped: aws.sdk.kotlin.services.datasync.model.ReportOverride? = null
/**
* Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer.
*/
public var transferred: aws.sdk.kotlin.services.datasync.model.ReportOverride? = null
/**
* Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer.
*/
public var verified: aws.sdk.kotlin.services.datasync.model.ReportOverride? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.ReportOverrides) : this() {
this.deleted = x.deleted
this.skipped = x.skipped
this.transferred = x.transferred
this.verified = x.verified
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.ReportOverrides = ReportOverrides(this)
/**
* construct an [aws.sdk.kotlin.services.datasync.model.ReportOverride] inside the given [block]
*/
public fun deleted(block: aws.sdk.kotlin.services.datasync.model.ReportOverride.Builder.() -> kotlin.Unit) {
this.deleted = aws.sdk.kotlin.services.datasync.model.ReportOverride.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.datasync.model.ReportOverride] inside the given [block]
*/
public fun skipped(block: aws.sdk.kotlin.services.datasync.model.ReportOverride.Builder.() -> kotlin.Unit) {
this.skipped = aws.sdk.kotlin.services.datasync.model.ReportOverride.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.datasync.model.ReportOverride] inside the given [block]
*/
public fun transferred(block: aws.sdk.kotlin.services.datasync.model.ReportOverride.Builder.() -> kotlin.Unit) {
this.transferred = aws.sdk.kotlin.services.datasync.model.ReportOverride.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.datasync.model.ReportOverride] inside the given [block]
*/
public fun verified(block: aws.sdk.kotlin.services.datasync.model.ReportOverride.Builder.() -> kotlin.Unit) {
this.verified = aws.sdk.kotlin.services.datasync.model.ReportOverride.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy