
commonMain.aws.sdk.kotlin.services.verifiedpermissions.model.EvaluationErrorItem.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.verifiedpermissions.model
/**
* Contains a description of an evaluation error.
*
* This data type is a response parameter of the [IsAuthorized](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorized.html), [BatchIsAuthorized](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_BatchIsAuthorized.html), and [IsAuthorizedWithToken](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorizedWithToken.html) operations.
*/
public class EvaluationErrorItem private constructor(builder: Builder) {
/**
* The error description.
*/
public val errorDescription: kotlin.String = requireNotNull(builder.errorDescription) { "A non-null value must be provided for errorDescription" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.verifiedpermissions.model.EvaluationErrorItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EvaluationErrorItem(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorDescription.hashCode()
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 EvaluationErrorItem
if (errorDescription != other.errorDescription) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.verifiedpermissions.model.EvaluationErrorItem = Builder(this).apply(block).build()
public class Builder {
/**
* The error description.
*/
public var errorDescription: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.verifiedpermissions.model.EvaluationErrorItem) : this() {
this.errorDescription = x.errorDescription
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.verifiedpermissions.model.EvaluationErrorItem = EvaluationErrorItem(this)
internal fun correctErrors(): Builder {
if (errorDescription == null) errorDescription = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy