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
Modifier and TypeMethodDescriptiondefault PromptGenAiResource.Builderagent(Consumer<PromptAgentResource.Builder> agent) Specifies an Amazon Bedrock agent with which to use the prompt.agent(PromptAgentResource agent) Specifies an Amazon Bedrock agent with which to use the prompt.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
-
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
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:
-