Interface Message.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Message.Builder,,Message> SdkBuilder<Message.Builder,,Message> SdkPojo
- Enclosing class:
Message
@Mutable
@NotThreadSafe
public static interface Message.Builder
extends SdkPojo, CopyableBuilder<Message.Builder,Message>
-
Method Summary
Modifier and TypeMethodDescriptionassistantMessage(Collection<AssistantMessageBlock> assistantMessage) A message from the assistant.assistantMessage(Consumer<AssistantMessageBlock.Builder>... assistantMessage) A message from the assistant.assistantMessage(AssistantMessageBlock... assistantMessage) A message from the assistant.userMessage(Collection<UserMessageBlock> userMessage) A message from the user.userMessage(Consumer<UserMessageBlock.Builder>... userMessage) A message from the user.userMessage(UserMessageBlock... userMessage) A message from the user.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
-
userMessage
A message from the user.
- Parameters:
userMessage- A message from the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userMessage
A message from the user.
- Parameters:
userMessage- A message from the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userMessage
A message from the user.
This is a convenience method that creates an instance of theUserMessageBlock.Builderavoiding the need to create one manually viaUserMessageBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserMessage(List<UserMessageBlock>).- Parameters:
userMessage- a consumer that will call methods onUserMessageBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
assistantMessage
A message from the assistant.
- Parameters:
assistantMessage- A message from the assistant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assistantMessage
A message from the assistant.
- Parameters:
assistantMessage- A message from the assistant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assistantMessage
A message from the assistant.
This is a convenience method that creates an instance of theAssistantMessageBlock.Builderavoiding the need to create one manually viaAssistantMessageBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassistantMessage(List<AssistantMessageBlock>).- Parameters:
assistantMessage- a consumer that will call methods onAssistantMessageBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-