commonMain.aws.sdk.kotlin.services.datasync.model.ReportResult.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
/**
* Indicates whether DataSync created a complete [task report](https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html) for your transfer.
*/
public class ReportResult private constructor(builder: Builder) {
/**
* Indicates the code associated with the error if DataSync can't create a complete report.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* Provides details about issues creating a report.
*/
public val errorDetail: kotlin.String? = builder.errorDetail
/**
* Indicates whether DataSync is still working on your report, created a report, or can't create a complete report.
*/
public val status: aws.sdk.kotlin.services.datasync.model.PhaseStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.ReportResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReportResult(")
append("errorCode=$errorCode,")
append("errorDetail=$errorDetail,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (errorDetail?.hashCode() ?: 0)
result = 31 * result + (status?.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 ReportResult
if (errorCode != other.errorCode) return false
if (errorDetail != other.errorDetail) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.ReportResult = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates the code associated with the error if DataSync can't create a complete report.
*/
public var errorCode: kotlin.String? = null
/**
* Provides details about issues creating a report.
*/
public var errorDetail: kotlin.String? = null
/**
* Indicates whether DataSync is still working on your report, created a report, or can't create a complete report.
*/
public var status: aws.sdk.kotlin.services.datasync.model.PhaseStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.ReportResult) : this() {
this.errorCode = x.errorCode
this.errorDetail = x.errorDetail
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.ReportResult = ReportResult(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy