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