@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FlowNodeConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains configurations for a node in your flow. For more information, see Node types in Amazon Bedrock works in the Amazon Bedrock User Guide.
Constructor and Description |
---|
FlowNodeConfiguration() |
Modifier and Type | Method and Description |
---|---|
FlowNodeConfiguration |
clone() |
boolean |
equals(Object obj) |
AgentFlowNodeConfiguration |
getAgent()
Contains configurations for an agent node in your flow.
|
CollectorFlowNodeConfiguration |
getCollector()
Contains configurations for a collector node in your flow.
|
ConditionFlowNodeConfiguration |
getCondition()
Contains configurations for a Condition node in your flow.
|
InputFlowNodeConfiguration |
getInput()
Contains configurations for an input flow node in your flow.
|
IteratorFlowNodeConfiguration |
getIterator()
Contains configurations for an iterator node in your flow.
|
KnowledgeBaseFlowNodeConfiguration |
getKnowledgeBase()
Contains configurations for a knowledge base node in your flow.
|
LambdaFunctionFlowNodeConfiguration |
getLambdaFunction()
Contains configurations for a Lambda function node in your flow.
|
LexFlowNodeConfiguration |
getLex()
Contains configurations for a Lex node in your flow.
|
OutputFlowNodeConfiguration |
getOutput()
Contains configurations for an output flow node in your flow.
|
PromptFlowNodeConfiguration |
getPrompt()
Contains configurations for a prompt node in your flow.
|
RetrievalFlowNodeConfiguration |
getRetrieval()
Contains configurations for a Retrieval node in your flow.
|
StorageFlowNodeConfiguration |
getStorage()
Contains configurations for a Storage node in your flow.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAgent(AgentFlowNodeConfiguration agent)
Contains configurations for an agent node in your flow.
|
void |
setCollector(CollectorFlowNodeConfiguration collector)
Contains configurations for a collector node in your flow.
|
void |
setCondition(ConditionFlowNodeConfiguration condition)
Contains configurations for a Condition node in your flow.
|
void |
setInput(InputFlowNodeConfiguration input)
Contains configurations for an input flow node in your flow.
|
void |
setIterator(IteratorFlowNodeConfiguration iterator)
Contains configurations for an iterator node in your flow.
|
void |
setKnowledgeBase(KnowledgeBaseFlowNodeConfiguration knowledgeBase)
Contains configurations for a knowledge base node in your flow.
|
void |
setLambdaFunction(LambdaFunctionFlowNodeConfiguration lambdaFunction)
Contains configurations for a Lambda function node in your flow.
|
void |
setLex(LexFlowNodeConfiguration lex)
Contains configurations for a Lex node in your flow.
|
void |
setOutput(OutputFlowNodeConfiguration output)
Contains configurations for an output flow node in your flow.
|
void |
setPrompt(PromptFlowNodeConfiguration prompt)
Contains configurations for a prompt node in your flow.
|
void |
setRetrieval(RetrievalFlowNodeConfiguration retrieval)
Contains configurations for a Retrieval node in your flow.
|
void |
setStorage(StorageFlowNodeConfiguration storage)
Contains configurations for a Storage node in your flow.
|
String |
toString()
Returns a string representation of this object.
|
FlowNodeConfiguration |
withAgent(AgentFlowNodeConfiguration agent)
Contains configurations for an agent node in your flow.
|
FlowNodeConfiguration |
withCollector(CollectorFlowNodeConfiguration collector)
Contains configurations for a collector node in your flow.
|
FlowNodeConfiguration |
withCondition(ConditionFlowNodeConfiguration condition)
Contains configurations for a Condition node in your flow.
|
FlowNodeConfiguration |
withInput(InputFlowNodeConfiguration input)
Contains configurations for an input flow node in your flow.
|
FlowNodeConfiguration |
withIterator(IteratorFlowNodeConfiguration iterator)
Contains configurations for an iterator node in your flow.
|
FlowNodeConfiguration |
withKnowledgeBase(KnowledgeBaseFlowNodeConfiguration knowledgeBase)
Contains configurations for a knowledge base node in your flow.
|
FlowNodeConfiguration |
withLambdaFunction(LambdaFunctionFlowNodeConfiguration lambdaFunction)
Contains configurations for a Lambda function node in your flow.
|
FlowNodeConfiguration |
withLex(LexFlowNodeConfiguration lex)
Contains configurations for a Lex node in your flow.
|
FlowNodeConfiguration |
withOutput(OutputFlowNodeConfiguration output)
Contains configurations for an output flow node in your flow.
|
FlowNodeConfiguration |
withPrompt(PromptFlowNodeConfiguration prompt)
Contains configurations for a prompt node in your flow.
|
FlowNodeConfiguration |
withRetrieval(RetrievalFlowNodeConfiguration retrieval)
Contains configurations for a Retrieval node in your flow.
|
FlowNodeConfiguration |
withStorage(StorageFlowNodeConfiguration storage)
Contains configurations for a Storage node in your flow.
|
public void setAgent(AgentFlowNodeConfiguration agent)
Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
agent
- Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the
response.public AgentFlowNodeConfiguration getAgent()
Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
public FlowNodeConfiguration withAgent(AgentFlowNodeConfiguration agent)
Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
agent
- Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the
response.public void setCollector(CollectorFlowNodeConfiguration collector)
Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
collector
- Contains configurations for a collector node in your flow. Collects an iteration of inputs and
consolidates them into an array of outputs.public CollectorFlowNodeConfiguration getCollector()
Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
public FlowNodeConfiguration withCollector(CollectorFlowNodeConfiguration collector)
Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
collector
- Contains configurations for a collector node in your flow. Collects an iteration of inputs and
consolidates them into an array of outputs.public void setCondition(ConditionFlowNodeConfiguration condition)
Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
condition
- Contains configurations for a Condition node in your flow. Defines conditions that lead to different
branches of the flow.public ConditionFlowNodeConfiguration getCondition()
Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
public FlowNodeConfiguration withCondition(ConditionFlowNodeConfiguration condition)
Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
condition
- Contains configurations for a Condition node in your flow. Defines conditions that lead to different
branches of the flow.public void setInput(InputFlowNodeConfiguration input)
Contains configurations for an input flow node in your flow. The first node in the flow. inputs
can't be specified for this node.
input
- Contains configurations for an input flow node in your flow. The first node in the flow.
inputs
can't be specified for this node.public InputFlowNodeConfiguration getInput()
Contains configurations for an input flow node in your flow. The first node in the flow. inputs
can't be specified for this node.
inputs
can't be specified for this node.public FlowNodeConfiguration withInput(InputFlowNodeConfiguration input)
Contains configurations for an input flow node in your flow. The first node in the flow. inputs
can't be specified for this node.
input
- Contains configurations for an input flow node in your flow. The first node in the flow.
inputs
can't be specified for this node.public void setIterator(IteratorFlowNodeConfiguration iterator)
Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
iterator
- Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively
sends each item of the array as an output to the following node. The size of the array is also returned in
the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
public IteratorFlowNodeConfiguration getIterator()
Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
public FlowNodeConfiguration withIterator(IteratorFlowNodeConfiguration iterator)
Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
iterator
- Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively
sends each item of the array as an output to the following node. The size of the array is also returned in
the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
public void setKnowledgeBase(KnowledgeBaseFlowNodeConfiguration knowledgeBase)
Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
knowledgeBase
- Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the
retrieved results or generated response.public KnowledgeBaseFlowNodeConfiguration getKnowledgeBase()
Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
public FlowNodeConfiguration withKnowledgeBase(KnowledgeBaseFlowNodeConfiguration knowledgeBase)
Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
knowledgeBase
- Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the
retrieved results or generated response.public void setLambdaFunction(LambdaFunctionFlowNodeConfiguration lambdaFunction)
Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
lambdaFunction
- Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.public LambdaFunctionFlowNodeConfiguration getLambdaFunction()
Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
public FlowNodeConfiguration withLambdaFunction(LambdaFunctionFlowNodeConfiguration lambdaFunction)
Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
lambdaFunction
- Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.public void setLex(LexFlowNodeConfiguration lex)
Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
lex
- Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of
the input and return the intent as the output.public LexFlowNodeConfiguration getLex()
Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
public FlowNodeConfiguration withLex(LexFlowNodeConfiguration lex)
Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
lex
- Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of
the input and return the intent as the output.public void setOutput(OutputFlowNodeConfiguration output)
Contains configurations for an output flow node in your flow. The last node in the flow. outputs
can't be specified for this node.
output
- Contains configurations for an output flow node in your flow. The last node in the flow.
outputs
can't be specified for this node.public OutputFlowNodeConfiguration getOutput()
Contains configurations for an output flow node in your flow. The last node in the flow. outputs
can't be specified for this node.
outputs
can't be specified for this node.public FlowNodeConfiguration withOutput(OutputFlowNodeConfiguration output)
Contains configurations for an output flow node in your flow. The last node in the flow. outputs
can't be specified for this node.
output
- Contains configurations for an output flow node in your flow. The last node in the flow.
outputs
can't be specified for this node.public void setPrompt(PromptFlowNodeConfiguration prompt)
Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
prompt
- Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as
the output. You can use a prompt from Prompt management or you can configure one in this node.public PromptFlowNodeConfiguration getPrompt()
Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
public FlowNodeConfiguration withPrompt(PromptFlowNodeConfiguration prompt)
Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
prompt
- Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as
the output. You can use a prompt from Prompt management or you can configure one in this node.public void setRetrieval(RetrievalFlowNodeConfiguration retrieval)
Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
retrieval
- Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and
returns it as the output.public RetrievalFlowNodeConfiguration getRetrieval()
Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
public FlowNodeConfiguration withRetrieval(RetrievalFlowNodeConfiguration retrieval)
Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
retrieval
- Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and
returns it as the output.public void setStorage(StorageFlowNodeConfiguration storage)
Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
storage
- Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.public StorageFlowNodeConfiguration getStorage()
Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
public FlowNodeConfiguration withStorage(StorageFlowNodeConfiguration storage)
Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
storage
- Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.public String toString()
toString
in class Object
Object.toString()
public FlowNodeConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.