Interface SpanMessage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpanMessage.Builder,,SpanMessage> SdkBuilder<SpanMessage.Builder,,SpanMessage> SdkPojo
- Enclosing class:
SpanMessage
@Mutable
@NotThreadSafe
public static interface SpanMessage.Builder
extends SdkPojo, CopyableBuilder<SpanMessage.Builder,SpanMessage>
-
Method Summary
Modifier and TypeMethodDescriptionUnique message identifierparticipant(String participant) Message source roleparticipant(Participant participant) Message source roleMessage timestampvalues(Collection<SpanMessageValue> values) Message content values (text, tool use, tool result)values(Consumer<SpanMessageValue.Builder>... values) Message content values (text, tool use, tool result)values(SpanMessageValue... values) Message content values (text, tool use, tool result)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
-
messageId
Unique message identifier
- Parameters:
messageId- Unique message identifier- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
participant
Message source role
- Parameters:
participant- Message source role- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
participant
Message source role
- Parameters:
participant- Message source role- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timestamp
Message timestamp
- Parameters:
timestamp- Message timestamp- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
Message content values (text, tool use, tool result)
- Parameters:
values- Message content values (text, tool use, tool result)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
Message content values (text, tool use, tool result)
- Parameters:
values- Message content values (text, tool use, tool result)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
Message content values (text, tool use, tool result)
This is a convenience method that creates an instance of theSpanMessageValue.Builderavoiding the need to create one manually viaSpanMessageValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalues(List<SpanMessageValue>).- Parameters:
values- a consumer that will call methods onSpanMessageValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-