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

commonMain.aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopSummary.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

/**
 * Summary information about the human loop.
 */
public class HumanLoopSummary private constructor(builder: Builder) {
    /**
     * When Amazon Augmented AI created the human loop.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The reason why the human loop failed. A 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 used to configure the human loop.
     */
    public val flowDefinitionArn: kotlin.String? = builder.flowDefinitionArn
    /**
     * The name of the human loop.
     */
    public val humanLoopName: kotlin.String? = builder.humanLoopName
    /**
     * 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.HumanLoopSummary = Builder().apply(block).build()
    }

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * When Amazon Augmented AI created the human loop.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The reason why the human loop failed. A 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 used to configure the human loop.
         */
        public var flowDefinitionArn: kotlin.String? = null
        /**
         * The name of the human loop.
         */
        public var humanLoopName: kotlin.String? = 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.HumanLoopSummary) : this() {
            this.creationTime = x.creationTime
            this.failureReason = x.failureReason
            this.flowDefinitionArn = x.flowDefinitionArn
            this.humanLoopName = x.humanLoopName
            this.humanLoopStatus = x.humanLoopStatus
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy