Interface InvocationInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InvocationInput.Builder,,InvocationInput> SdkBuilder<InvocationInput.Builder,,InvocationInput> SdkPojo
- Enclosing class:
InvocationInput
-
Method Summary
Modifier and TypeMethodDescriptiondefault InvocationInput.BuilderactionGroupInvocationInput(Consumer<ActionGroupInvocationInput.Builder> actionGroupInvocationInput) Contains information about the action group to be invoked.actionGroupInvocationInput(ActionGroupInvocationInput actionGroupInvocationInput) Contains information about the action group to be invoked.default InvocationInput.BuildercodeInterpreterInvocationInput(Consumer<CodeInterpreterInvocationInput.Builder> codeInterpreterInvocationInput) Contains information about the code interpreter to be invoked.codeInterpreterInvocationInput(CodeInterpreterInvocationInput codeInterpreterInvocationInput) Contains information about the code interpreter to be invoked.invocationType(String invocationType) Specifies whether the agent is invoking an action group or a knowledge base.invocationType(InvocationType invocationType) Specifies whether the agent is invoking an action group or a knowledge base.default InvocationInput.BuilderknowledgeBaseLookupInput(Consumer<KnowledgeBaseLookupInput.Builder> knowledgeBaseLookupInput) Contains details about the knowledge base to look up and the query to be made.knowledgeBaseLookupInput(KnowledgeBaseLookupInput knowledgeBaseLookupInput) Contains details about the knowledge base to look up and the query to be made.The unique identifier of the trace.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
actionGroupInvocationInput
InvocationInput.Builder actionGroupInvocationInput(ActionGroupInvocationInput actionGroupInvocationInput) Contains information about the action group to be invoked.
- Parameters:
actionGroupInvocationInput- Contains information about the action group to be invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionGroupInvocationInput
default InvocationInput.Builder actionGroupInvocationInput(Consumer<ActionGroupInvocationInput.Builder> actionGroupInvocationInput) Contains information about the action group to be invoked.
This is a convenience method that creates an instance of theActionGroupInvocationInput.Builderavoiding the need to create one manually viaActionGroupInvocationInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactionGroupInvocationInput(ActionGroupInvocationInput).- Parameters:
actionGroupInvocationInput- a consumer that will call methods onActionGroupInvocationInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codeInterpreterInvocationInput
InvocationInput.Builder codeInterpreterInvocationInput(CodeInterpreterInvocationInput codeInterpreterInvocationInput) Contains information about the code interpreter to be invoked.
- Parameters:
codeInterpreterInvocationInput- Contains information about the code interpreter to be invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeInterpreterInvocationInput
default InvocationInput.Builder codeInterpreterInvocationInput(Consumer<CodeInterpreterInvocationInput.Builder> codeInterpreterInvocationInput) Contains information about the code interpreter to be invoked.
This is a convenience method that creates an instance of theCodeInterpreterInvocationInput.Builderavoiding the need to create one manually viaCodeInterpreterInvocationInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocodeInterpreterInvocationInput(CodeInterpreterInvocationInput).- Parameters:
codeInterpreterInvocationInput- a consumer that will call methods onCodeInterpreterInvocationInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
invocationType
Specifies whether the agent is invoking an action group or a knowledge base.
- Parameters:
invocationType- Specifies whether the agent is invoking an action group or a knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
invocationType
Specifies whether the agent is invoking an action group or a knowledge base.
- Parameters:
invocationType- Specifies whether the agent is invoking an action group or a knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
knowledgeBaseLookupInput
Contains details about the knowledge base to look up and the query to be made.
- Parameters:
knowledgeBaseLookupInput- Contains details about the knowledge base to look up and the query to be made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseLookupInput
default InvocationInput.Builder knowledgeBaseLookupInput(Consumer<KnowledgeBaseLookupInput.Builder> knowledgeBaseLookupInput) Contains details about the knowledge base to look up and the query to be made.
This is a convenience method that creates an instance of theKnowledgeBaseLookupInput.Builderavoiding the need to create one manually viaKnowledgeBaseLookupInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toknowledgeBaseLookupInput(KnowledgeBaseLookupInput).- Parameters:
knowledgeBaseLookupInput- a consumer that will call methods onKnowledgeBaseLookupInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traceId
The unique identifier of the trace.
- Parameters:
traceId- The unique identifier of the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-