commonMain.aws.sdk.kotlin.services.appflow.model.ErrorInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides details in the event of a failed flow, including the failure count and the related error messages.
*/
public class ErrorInfo private constructor(builder: Builder) {
/**
* Specifies the error message that appears if a flow fails.
*/
public val executionMessage: kotlin.String? = builder.executionMessage
/**
* Specifies the failure count for the attempted flow.
*/
public val putFailuresCount: kotlin.Long? = builder.putFailuresCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.ErrorInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ErrorInfo(")
append("executionMessage=$executionMessage,")
append("putFailuresCount=$putFailuresCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = executionMessage?.hashCode() ?: 0
result = 31 * result + (putFailuresCount?.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 ErrorInfo
if (executionMessage != other.executionMessage) return false
if (putFailuresCount != other.putFailuresCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.ErrorInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the error message that appears if a flow fails.
*/
public var executionMessage: kotlin.String? = null
/**
* Specifies the failure count for the attempted flow.
*/
public var putFailuresCount: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.ErrorInfo) : this() {
this.executionMessage = x.executionMessage
this.putFailuresCount = x.putFailuresCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.ErrorInfo = ErrorInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}