Interface PromptGenAiResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PromptGenAiResource.Builder,PromptGenAiResource>,SdkBuilder<PromptGenAiResource.Builder,PromptGenAiResource>,SdkPojo
- Enclosing class:
- PromptGenAiResource
@Mutable @NotThreadSafe public static interface PromptGenAiResource.Builder extends SdkPojo, CopyableBuilder<PromptGenAiResource.Builder,PromptGenAiResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PromptGenAiResource.Builderagent(Consumer<PromptAgentResource.Builder> agent)Specifies an Amazon Bedrock agent with which to use the prompt.PromptGenAiResource.Builderagent(PromptAgentResource agent)Specifies an Amazon Bedrock agent with which to use the prompt.-
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 Detail
-
agent
PromptGenAiResource.Builder agent(PromptAgentResource agent)
Specifies an Amazon Bedrock agent with which to use the prompt.
- Parameters:
agent- Specifies an Amazon Bedrock agent with which to use the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agent
default PromptGenAiResource.Builder agent(Consumer<PromptAgentResource.Builder> agent)
Specifies an Amazon Bedrock agent with which to use the prompt.
This is a convenience method that creates an instance of thePromptAgentResource.Builderavoiding the need to create one manually viaPromptAgentResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagent(PromptAgentResource).- Parameters:
agent- a consumer that will call methods onPromptAgentResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
agent(PromptAgentResource)
-
-