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

commonMain.aws.sdk.kotlin.services.bedrock.model.HumanWorkflowConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.bedrock.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Contains `SageMakerFlowDefinition` object. The object is used to specify the prompt dataset, task type, rating method and metric names.
 */
public class HumanWorkflowConfig private constructor(builder: Builder) {
    /**
     * The Amazon Resource Number (ARN) for the flow definition
     */
    public val flowDefinitionArn: kotlin.String = requireNotNull(builder.flowDefinitionArn) { "A non-null value must be provided for flowDefinitionArn" }
    /**
     * Instructions for the flow definition
     */
    public val instructions: kotlin.String? = builder.instructions

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

    override fun toString(): kotlin.String = buildString {
        append("HumanWorkflowConfig(")
        append("flowDefinitionArn=$flowDefinitionArn,")
        append("instructions=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = flowDefinitionArn.hashCode()
        result = 31 * result + (instructions?.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 HumanWorkflowConfig

        if (flowDefinitionArn != other.flowDefinitionArn) return false
        if (instructions != other.instructions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Number (ARN) for the flow definition
         */
        public var flowDefinitionArn: kotlin.String? = null
        /**
         * Instructions for the flow definition
         */
        public var instructions: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrock.model.HumanWorkflowConfig) : this() {
            this.flowDefinitionArn = x.flowDefinitionArn
            this.instructions = x.instructions
        }

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

        internal fun correctErrors(): Builder {
            if (flowDefinitionArn == null) flowDefinitionArn = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy