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 TypeMethodDescriptionThe turn's text content.The role of the participant that produced this turn.role(MessageRole role) The role of the participant that produced this turn.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
-
role
The role of the participant that produced this turn. Valid values:
-
USER- The user asked or said this turn. -
ASSISTANT- The assistant answered in this turn.
- Parameters:
role- The role of the participant that produced this turn. Valid values:-
USER- The user asked or said this turn. -
ASSISTANT- The assistant answered in this turn.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
role
The role of the participant that produced this turn. Valid values:
-
USER- The user asked or said this turn. -
ASSISTANT- The assistant answered in this turn.
- Parameters:
role- The role of the participant that produced this turn. Valid values:-
USER- The user asked or said this turn. -
ASSISTANT- The assistant answered in this turn.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
content
The turn's text content.
- Parameters:
content- The turn's text content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-