Class FlowNodeConfiguration

    • Method Detail

      • agent

        public final AgentFlowNodeConfiguration agent()

        Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.

        Returns:
        Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
      • collector

        public final CollectorFlowNodeConfiguration collector()

        Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.

        Returns:
        Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
      • condition

        public final ConditionFlowNodeConfiguration condition()

        Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.

        Returns:
        Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
      • input

        public final 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.

        Returns:
        Contains configurations for an input flow node in your flow. The first node in the flow. inputs can't be specified for this node.
      • iterator

        public final 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.

        Returns:
        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.

      • knowledgeBase

        public final KnowledgeBaseFlowNodeConfiguration knowledgeBase()

        Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.

        Returns:
        Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
      • lambdaFunction

        public final LambdaFunctionFlowNodeConfiguration lambdaFunction()

        Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.

        Returns:
        Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
      • lex

        public final 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.

        Returns:
        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.
      • output

        public final 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.

        Returns:
        Contains configurations for an output flow node in your flow. The last node in the flow. outputs can't be specified for this node.
      • prompt

        public final 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.

        Returns:
        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.
      • retrieval

        public final RetrievalFlowNodeConfiguration retrieval()

        Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.

        Returns:
        Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
      • storage

        public final StorageFlowNodeConfiguration storage()

        Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.

        Returns:
        Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromAgent

        public static FlowNodeConfiguration fromAgent​(AgentFlowNodeConfiguration agent)
        Create an instance of this class with agent() initialized to the given value.

        Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.

        Parameters:
        agent - Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
      • fromAgent

        public static FlowNodeConfiguration fromAgent​(Consumer<AgentFlowNodeConfiguration.Builder> agent)
        Create an instance of this class with agent() initialized to the given value.

        Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.

        Parameters:
        agent - Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
      • fromCollector

        public static FlowNodeConfiguration fromCollector​(CollectorFlowNodeConfiguration collector)
        Create an instance of this class with collector() initialized to the given value.

        Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.

        Parameters:
        collector - Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
      • fromCollector

        public static FlowNodeConfiguration fromCollector​(Consumer<CollectorFlowNodeConfiguration.Builder> collector)
        Create an instance of this class with collector() initialized to the given value.

        Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.

        Parameters:
        collector - Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
      • fromCondition

        public static FlowNodeConfiguration fromCondition​(ConditionFlowNodeConfiguration condition)
        Create an instance of this class with condition() initialized to the given value.

        Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.

        Parameters:
        condition - Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
      • fromCondition

        public static FlowNodeConfiguration fromCondition​(Consumer<ConditionFlowNodeConfiguration.Builder> condition)
        Create an instance of this class with condition() initialized to the given value.

        Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.

        Parameters:
        condition - Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
      • fromInput

        public static FlowNodeConfiguration fromInput​(InputFlowNodeConfiguration input)
        Create an instance of this class with input() initialized to the given value.

        Contains configurations for an input flow node in your flow. The first node in the flow. inputs can't be specified for this node.

        Parameters:
        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.
      • fromInput

        public static FlowNodeConfiguration fromInput​(Consumer<InputFlowNodeConfiguration.Builder> input)
        Create an instance of this class with input() initialized to the given value.

        Contains configurations for an input flow node in your flow. The first node in the flow. inputs can't be specified for this node.

        Parameters:
        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.
      • fromIterator

        public static FlowNodeConfiguration fromIterator​(IteratorFlowNodeConfiguration iterator)
        Create an instance of this class with iterator() initialized to the given value.

        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.

        Parameters:
        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.

      • fromIterator

        public static FlowNodeConfiguration fromIterator​(Consumer<IteratorFlowNodeConfiguration.Builder> iterator)
        Create an instance of this class with iterator() initialized to the given value.

        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.

        Parameters:
        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.

      • fromKnowledgeBase

        public static FlowNodeConfiguration fromKnowledgeBase​(KnowledgeBaseFlowNodeConfiguration knowledgeBase)
        Create an instance of this class with knowledgeBase() initialized to the given value.

        Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.

        Parameters:
        knowledgeBase - Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
      • fromKnowledgeBase

        public static FlowNodeConfiguration fromKnowledgeBase​(Consumer<KnowledgeBaseFlowNodeConfiguration.Builder> knowledgeBase)
        Create an instance of this class with knowledgeBase() initialized to the given value.

        Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.

        Parameters:
        knowledgeBase - Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
      • fromLambdaFunction

        public static FlowNodeConfiguration fromLambdaFunction​(LambdaFunctionFlowNodeConfiguration lambdaFunction)
        Create an instance of this class with lambdaFunction() initialized to the given value.

        Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.

        Parameters:
        lambdaFunction - Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
      • fromLambdaFunction

        public static FlowNodeConfiguration fromLambdaFunction​(Consumer<LambdaFunctionFlowNodeConfiguration.Builder> lambdaFunction)
        Create an instance of this class with lambdaFunction() initialized to the given value.

        Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.

        Parameters:
        lambdaFunction - Contains configurations for a Lambda function node in your flow. Invokes an Lambda function.
      • fromLex

        public static FlowNodeConfiguration fromLex​(LexFlowNodeConfiguration lex)
        Create an instance of this class with lex() initialized to the given value.

        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.

        Parameters:
        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.
      • fromLex

        public static FlowNodeConfiguration fromLex​(Consumer<LexFlowNodeConfiguration.Builder> lex)
        Create an instance of this class with lex() initialized to the given value.

        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.

        Parameters:
        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.
      • fromOutput

        public static FlowNodeConfiguration fromOutput​(OutputFlowNodeConfiguration output)
        Create an instance of this class with output() initialized to the given value.

        Contains configurations for an output flow node in your flow. The last node in the flow. outputs can't be specified for this node.

        Parameters:
        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.
      • fromOutput

        public static FlowNodeConfiguration fromOutput​(Consumer<OutputFlowNodeConfiguration.Builder> output)
        Create an instance of this class with output() initialized to the given value.

        Contains configurations for an output flow node in your flow. The last node in the flow. outputs can't be specified for this node.

        Parameters:
        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.
      • fromPrompt

        public static FlowNodeConfiguration fromPrompt​(PromptFlowNodeConfiguration prompt)
        Create an instance of this class with prompt() initialized to the given value.

        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.

        Parameters:
        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.
      • fromPrompt

        public static FlowNodeConfiguration fromPrompt​(Consumer<PromptFlowNodeConfiguration.Builder> prompt)
        Create an instance of this class with prompt() initialized to the given value.

        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.

        Parameters:
        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.
      • fromRetrieval

        public static FlowNodeConfiguration fromRetrieval​(RetrievalFlowNodeConfiguration retrieval)
        Create an instance of this class with retrieval() initialized to the given value.

        Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.

        Parameters:
        retrieval - Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
      • fromRetrieval

        public static FlowNodeConfiguration fromRetrieval​(Consumer<RetrievalFlowNodeConfiguration.Builder> retrieval)
        Create an instance of this class with retrieval() initialized to the given value.

        Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.

        Parameters:
        retrieval - Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
      • fromStorage

        public static FlowNodeConfiguration fromStorage​(StorageFlowNodeConfiguration storage)
        Create an instance of this class with storage() initialized to the given value.

        Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.

        Parameters:
        storage - Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
      • fromStorage

        public static FlowNodeConfiguration fromStorage​(Consumer<StorageFlowNodeConfiguration.Builder> storage)
        Create an instance of this class with storage() initialized to the given value.

        Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.

        Parameters:
        storage - Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.