Interface CustomPromptInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CustomPromptInput.Builder,,CustomPromptInput> SdkBuilder<CustomPromptInput.Builder,,CustomPromptInput> SdkPojo
- Enclosing class:
CustomPromptInput
@Mutable
@NotThreadSafe
public static interface CustomPromptInput.Builder
extends SdkPojo, CopyableBuilder<CustomPromptInput.Builder,CustomPromptInput>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CustomPromptInput.BuilderexistingPrompt(Consumer<CustomPromptProfile.Builder> existingPrompt) An existing custom prompt profile to use for the agent.existingPrompt(CustomPromptProfile existingPrompt) An existing custom prompt profile to use for the agent.default CustomPromptInput.BuildernewPrompt(Consumer<CustomPromptInputParameters.Builder> newPrompt) New custom prompt parameters to configure for the agent.newPrompt(CustomPromptInputParameters newPrompt) New custom prompt parameters to configure for the agent.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, sdkFieldNameToField, sdkFields
-
Method Details
-
existingPrompt
An existing custom prompt profile to use for the agent.
- Parameters:
existingPrompt- An existing custom prompt profile to use for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
existingPrompt
default CustomPromptInput.Builder existingPrompt(Consumer<CustomPromptProfile.Builder> existingPrompt) An existing custom prompt profile to use for the agent.
This is a convenience method that creates an instance of theCustomPromptProfile.Builderavoiding the need to create one manually viaCustomPromptProfile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexistingPrompt(CustomPromptProfile).- Parameters:
existingPrompt- a consumer that will call methods onCustomPromptProfile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
newPrompt
New custom prompt parameters to configure for the agent.
- Parameters:
newPrompt- New custom prompt parameters to configure for the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newPrompt
default CustomPromptInput.Builder newPrompt(Consumer<CustomPromptInputParameters.Builder> newPrompt) New custom prompt parameters to configure for the agent.
This is a convenience method that creates an instance of theCustomPromptInputParameters.Builderavoiding the need to create one manually viaCustomPromptInputParameters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonewPrompt(CustomPromptInputParameters).- Parameters:
newPrompt- a consumer that will call methods onCustomPromptInputParameters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-