commonMain.aws.sdk.kotlin.services.textract.model.HumanLoopActivationOutput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of textract-jvm Show documentation
Show all versions of textract-jvm Show documentation
The AWS SDK for Kotlin client for Textract
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.textract.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the input did not trigger human review.
*/
public class HumanLoopActivationOutput private constructor(builder: Builder) {
/**
* Shows the result of condition evaluations, including those conditions which activated a human review.
*/
public val humanLoopActivationConditionsEvaluationResults: kotlin.String? = builder.humanLoopActivationConditionsEvaluationResults
/**
* Shows if and why human review was needed.
*/
public val humanLoopActivationReasons: List? = builder.humanLoopActivationReasons
/**
* The Amazon Resource Name (ARN) of the HumanLoop created.
*/
public val humanLoopArn: kotlin.String? = builder.humanLoopArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.textract.model.HumanLoopActivationOutput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HumanLoopActivationOutput(")
append("humanLoopActivationConditionsEvaluationResults=$humanLoopActivationConditionsEvaluationResults,")
append("humanLoopActivationReasons=$humanLoopActivationReasons,")
append("humanLoopArn=$humanLoopArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = humanLoopActivationConditionsEvaluationResults?.hashCode() ?: 0
result = 31 * result + (humanLoopActivationReasons?.hashCode() ?: 0)
result = 31 * result + (humanLoopArn?.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 HumanLoopActivationOutput
if (humanLoopActivationConditionsEvaluationResults != other.humanLoopActivationConditionsEvaluationResults) return false
if (humanLoopActivationReasons != other.humanLoopActivationReasons) return false
if (humanLoopArn != other.humanLoopArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.textract.model.HumanLoopActivationOutput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Shows the result of condition evaluations, including those conditions which activated a human review.
*/
public var humanLoopActivationConditionsEvaluationResults: kotlin.String? = null
/**
* Shows if and why human review was needed.
*/
public var humanLoopActivationReasons: List? = null
/**
* The Amazon Resource Name (ARN) of the HumanLoop created.
*/
public var humanLoopArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.textract.model.HumanLoopActivationOutput) : this() {
this.humanLoopActivationConditionsEvaluationResults = x.humanLoopActivationConditionsEvaluationResults
this.humanLoopActivationReasons = x.humanLoopActivationReasons
this.humanLoopArn = x.humanLoopArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.textract.model.HumanLoopActivationOutput = HumanLoopActivationOutput(this)
internal fun correctErrors(): Builder {
return this
}
}
}