Interface MessageData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MessageData.Builder,,MessageData> SdkBuilder<MessageData.Builder,,MessageData> SdkPojo
- Enclosing class:
MessageData
@Mutable
@NotThreadSafe
public static interface MessageData.Builder
extends SdkPojo, CopyableBuilder<MessageData.Builder,MessageData>
-
Method Summary
Modifier and TypeMethodDescriptiondefault MessageData.Buildertext(Consumer<TextMessage.Builder> text) The message data in text type.text(TextMessage text) The message data in text type.default MessageData.BuildertoolUseResult(Consumer<ToolUseResultData.Builder> toolUseResult) The result of tool usage in the message.toolUseResult(ToolUseResultData toolUseResult) The result of tool usage in the message.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
-
text
The message data in text type.
- Parameters:
text- The message data in text type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
The message data in text type.
This is a convenience method that creates an instance of theTextMessage.Builderavoiding the need to create one manually viaTextMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totext(TextMessage).- Parameters:
text- a consumer that will call methods onTextMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toolUseResult
The result of tool usage in the message.
- Parameters:
toolUseResult- The result of tool usage in the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolUseResult
The result of tool usage in the message.
This is a convenience method that creates an instance of theToolUseResultData.Builderavoiding the need to create one manually viaToolUseResultData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolUseResult(ToolUseResultData).- Parameters:
toolUseResult- a consumer that will call methods onToolUseResultData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-