Interface Conversational.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Conversational.Builder,
,Conversational> SdkBuilder<Conversational.Builder,
,Conversational> SdkPojo
- Enclosing class:
Conversational
@Mutable
@NotThreadSafe
public static interface Conversational.Builder
extends SdkPojo, CopyableBuilder<Conversational.Builder,Conversational>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Conversational.Builder
content
(Consumer<Content.Builder> content) The content of the conversation message.The content of the conversation message.The role of the participant in the conversation (for example, "user" or "assistant").The role of the participant in the conversation (for example, "user" or "assistant").Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
content
The content of the conversation message.
- Parameters:
content
- The content of the conversation message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the conversation message.
This is a convenience method that creates an instance of theContent.Builder
avoiding the need to create one manually viaContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(Content)
.- Parameters:
content
- a consumer that will call methods onContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
role
The role of the participant in the conversation (for example, "user" or "assistant").
- Parameters:
role
- The role of the participant in the conversation (for example, "user" or "assistant").- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
role
The role of the participant in the conversation (for example, "user" or "assistant").
- Parameters:
role
- The role of the participant in the conversation (for example, "user" or "assistant").- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-