Interface HarnessMessage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HarnessMessage.Builder,,HarnessMessage> SdkBuilder<HarnessMessage.Builder,,HarnessMessage> SdkPojo
- Enclosing class:
HarnessMessage
@Mutable
@NotThreadSafe
public static interface HarnessMessage.Builder
extends SdkPojo, CopyableBuilder<HarnessMessage.Builder,HarnessMessage>
-
Method Summary
Modifier and TypeMethodDescriptioncontent(Collection<HarnessContentBlock> content) The content blocks of the message.content(Consumer<HarnessContentBlock.Builder>... content) The content blocks of the message.content(HarnessContentBlock... content) The content blocks of the message.The role of the message sender.role(HarnessConversationRole role) The role of the message sender.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 message sender.
- Parameters:
role- The role of the message sender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
role
The role of the message sender.
- Parameters:
role- The role of the message sender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
content
The content blocks of the message.
- Parameters:
content- The content blocks of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content blocks of the message.
- Parameters:
content- The content blocks of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content blocks of the message.
This is a convenience method that creates an instance of theHarnessContentBlock.Builderavoiding the need to create one manually viaHarnessContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(List<HarnessContentBlock>).- Parameters:
content- a consumer that will call methods onHarnessContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-