All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.sagemakera2iruntime.model.DescribeHumanLoopResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.sagemakera2iruntime.model

import aws.smithy.kotlin.runtime.time.Instant

public class DescribeHumanLoopResponse private constructor(builder: Builder) {
    /**
     * The creation time when Amazon Augmented AI created the human loop.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * A failure code that identifies the type of failure.
     *
     * Possible values: `ValidationError`, `Expired`, `InternalError`
     */
    public val failureCode: kotlin.String? = builder.failureCode
    /**
     * The reason why a human loop failed. The failure reason is returned when the status of the human loop is `Failed`.
     */
    public val failureReason: kotlin.String? = builder.failureReason
    /**
     * The Amazon Resource Name (ARN) of the flow definition.
     */
    public val flowDefinitionArn: kotlin.String? = builder.flowDefinitionArn
    /**
     * The Amazon Resource Name (ARN) of the human loop.
     */
    public val humanLoopArn: kotlin.String? = builder.humanLoopArn
    /**
     * The name of the human loop. The name must be lowercase, unique within the Region in your account, and can have up to 63 characters. Valid characters: a-z, 0-9, and - (hyphen).
     */
    public val humanLoopName: kotlin.String? = builder.humanLoopName
    /**
     * An object that contains information about the output of the human loop.
     */
    public val humanLoopOutput: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopOutput? = builder.humanLoopOutput
    /**
     * The status of the human loop.
     */
    public val humanLoopStatus: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopStatus? = builder.humanLoopStatus

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakera2iruntime.model.DescribeHumanLoopResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeHumanLoopResponse(")
        append("creationTime=$creationTime,")
        append("failureCode=$failureCode,")
        append("failureReason=$failureReason,")
        append("flowDefinitionArn=$flowDefinitionArn,")
        append("humanLoopArn=$humanLoopArn,")
        append("humanLoopName=$humanLoopName,")
        append("humanLoopOutput=$humanLoopOutput,")
        append("humanLoopStatus=$humanLoopStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTime?.hashCode() ?: 0
        result = 31 * result + (failureCode?.hashCode() ?: 0)
        result = 31 * result + (failureReason?.hashCode() ?: 0)
        result = 31 * result + (flowDefinitionArn?.hashCode() ?: 0)
        result = 31 * result + (humanLoopArn?.hashCode() ?: 0)
        result = 31 * result + (humanLoopName?.hashCode() ?: 0)
        result = 31 * result + (humanLoopOutput?.hashCode() ?: 0)
        result = 31 * result + (humanLoopStatus?.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 DescribeHumanLoopResponse

        if (creationTime != other.creationTime) return false
        if (failureCode != other.failureCode) return false
        if (failureReason != other.failureReason) return false
        if (flowDefinitionArn != other.flowDefinitionArn) return false
        if (humanLoopArn != other.humanLoopArn) return false
        if (humanLoopName != other.humanLoopName) return false
        if (humanLoopOutput != other.humanLoopOutput) return false
        if (humanLoopStatus != other.humanLoopStatus) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakera2iruntime.model.DescribeHumanLoopResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The creation time when Amazon Augmented AI created the human loop.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A failure code that identifies the type of failure.
         *
         * Possible values: `ValidationError`, `Expired`, `InternalError`
         */
        public var failureCode: kotlin.String? = null
        /**
         * The reason why a human loop failed. The failure reason is returned when the status of the human loop is `Failed`.
         */
        public var failureReason: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the flow definition.
         */
        public var flowDefinitionArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the human loop.
         */
        public var humanLoopArn: kotlin.String? = null
        /**
         * The name of the human loop. The name must be lowercase, unique within the Region in your account, and can have up to 63 characters. Valid characters: a-z, 0-9, and - (hyphen).
         */
        public var humanLoopName: kotlin.String? = null
        /**
         * An object that contains information about the output of the human loop.
         */
        public var humanLoopOutput: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopOutput? = null
        /**
         * The status of the human loop.
         */
        public var humanLoopStatus: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakera2iruntime.model.DescribeHumanLoopResponse) : this() {
            this.creationTime = x.creationTime
            this.failureCode = x.failureCode
            this.failureReason = x.failureReason
            this.flowDefinitionArn = x.flowDefinitionArn
            this.humanLoopArn = x.humanLoopArn
            this.humanLoopName = x.humanLoopName
            this.humanLoopOutput = x.humanLoopOutput
            this.humanLoopStatus = x.humanLoopStatus
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.sagemakera2iruntime.model.DescribeHumanLoopResponse = DescribeHumanLoopResponse(this)

        /**
         * construct an [aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopOutput] inside the given [block]
         */
        public fun humanLoopOutput(block: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopOutput.Builder.() -> kotlin.Unit) {
            this.humanLoopOutput = aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopOutput.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy