Interface ResponseConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResponseConfiguration.Builder,
,ResponseConfiguration> SdkBuilder<ResponseConfiguration.Builder,
,ResponseConfiguration> SdkPojo
- Enclosing class:
ResponseConfiguration
@Mutable
@NotThreadSafe
public static interface ResponseConfiguration.Builder
extends SdkPojo, CopyableBuilder<ResponseConfiguration.Builder,ResponseConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseConfiguration.Builder
instructionCollection
(Consumer<InstructionCollection.Builder> instructionCollection) A collection of instructions that guide how Amazon Q Business generates responses, including parameters for response length, target audience, perspective, output style, identity, tone, and custom instructions.instructionCollection
(InstructionCollection instructionCollection) A collection of instructions that guide how Amazon Q Business generates responses, including parameters for response length, target audience, perspective, output style, identity, tone, and custom instructions.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instructionCollection
A collection of instructions that guide how Amazon Q Business generates responses, including parameters for response length, target audience, perspective, output style, identity, tone, and custom instructions.
- Parameters:
instructionCollection
- A collection of instructions that guide how Amazon Q Business generates responses, including parameters for response length, target audience, perspective, output style, identity, tone, and custom instructions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instructionCollection
default ResponseConfiguration.Builder instructionCollection(Consumer<InstructionCollection.Builder> instructionCollection) A collection of instructions that guide how Amazon Q Business generates responses, including parameters for response length, target audience, perspective, output style, identity, tone, and custom instructions.
This is a convenience method that creates an instance of theInstructionCollection.Builder
avoiding the need to create one manually viaInstructionCollection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstructionCollection(InstructionCollection)
.- Parameters:
instructionCollection
- a consumer that will call methods onInstructionCollection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-