commonMain.aws.sdk.kotlin.services.bedrockagent.model.AgentFlowNodeConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Defines an agent node in your flow. You specify the agent to invoke at this point in the flow. For more information, see [Node types in Amazon Bedrock works](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html) in the Amazon Bedrock User Guide.
*/
public class AgentFlowNodeConfiguration private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the alias of the agent to invoke.
*/
public val agentAliasArn: kotlin.String = requireNotNull(builder.agentAliasArn) { "A non-null value must be provided for agentAliasArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.AgentFlowNodeConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AgentFlowNodeConfiguration(")
append("agentAliasArn=$agentAliasArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = agentAliasArn.hashCode()
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 AgentFlowNodeConfiguration
if (agentAliasArn != other.agentAliasArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.AgentFlowNodeConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the alias of the agent to invoke.
*/
public var agentAliasArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.AgentFlowNodeConfiguration) : this() {
this.agentAliasArn = x.agentAliasArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.AgentFlowNodeConfiguration = AgentFlowNodeConfiguration(this)
internal fun correctErrors(): Builder {
if (agentAliasArn == null) agentAliasArn = ""
return this
}
}
}