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

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

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

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



public class StartHumanLoopRequest private constructor(builder: Builder) {
    /**
     * Attributes of the specified data. Use `DataAttributes` to specify if your data is free of personally identifiable information and/or free of adult content.
     */
    public val dataAttributes: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopDataAttributes? = builder.dataAttributes
    /**
     * The Amazon Resource Name (ARN) of the flow definition associated with this human loop.
     */
    public val flowDefinitionArn: kotlin.String? = builder.flowDefinitionArn
    /**
     * An object that contains information about the human loop.
     */
    public val humanLoopInput: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopInput? = builder.humanLoopInput
    /**
     * The name of the human loop.
     */
    public val humanLoopName: kotlin.String? = builder.humanLoopName

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

    override fun toString(): kotlin.String = buildString {
        append("StartHumanLoopRequest(")
        append("dataAttributes=$dataAttributes,")
        append("flowDefinitionArn=$flowDefinitionArn,")
        append("humanLoopInput=$humanLoopInput,")
        append("humanLoopName=$humanLoopName")
        append(")")
    }

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

        if (dataAttributes != other.dataAttributes) return false
        if (flowDefinitionArn != other.flowDefinitionArn) return false
        if (humanLoopInput != other.humanLoopInput) return false
        if (humanLoopName != other.humanLoopName) return false

        return true
    }

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

    public class Builder {
        /**
         * Attributes of the specified data. Use `DataAttributes` to specify if your data is free of personally identifiable information and/or free of adult content.
         */
        public var dataAttributes: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopDataAttributes? = null
        /**
         * The Amazon Resource Name (ARN) of the flow definition associated with this human loop.
         */
        public var flowDefinitionArn: kotlin.String? = null
        /**
         * An object that contains information about the human loop.
         */
        public var humanLoopInput: aws.sdk.kotlin.services.sagemakera2iruntime.model.HumanLoopInput? = null
        /**
         * The name of the human loop.
         */
        public var humanLoopName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakera2iruntime.model.StartHumanLoopRequest) : this() {
            this.dataAttributes = x.dataAttributes
            this.flowDefinitionArn = x.flowDefinitionArn
            this.humanLoopInput = x.humanLoopInput
            this.humanLoopName = x.humanLoopName
        }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy