
commonMain.aws.sdk.kotlin.services.dynamodb.model.FailureException.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
/**
* Represents a failure a contributor insights operation.
*/
public class FailureException private constructor(builder: Builder) {
/**
* Description of the failure.
*/
public val exceptionDescription: kotlin.String? = builder.exceptionDescription
/**
* Exception name.
*/
public val exceptionName: kotlin.String? = builder.exceptionName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.FailureException = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FailureException(")
append("exceptionDescription=$exceptionDescription,")
append("exceptionName=$exceptionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = exceptionDescription?.hashCode() ?: 0
result = 31 * result + (exceptionName?.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 FailureException
if (exceptionDescription != other.exceptionDescription) return false
if (exceptionName != other.exceptionName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.FailureException = Builder(this).apply(block).build()
public class Builder {
/**
* Description of the failure.
*/
public var exceptionDescription: kotlin.String? = null
/**
* Exception name.
*/
public var exceptionName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.FailureException) : this() {
this.exceptionDescription = x.exceptionDescription
this.exceptionName = x.exceptionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.FailureException = FailureException(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy