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.Buildercontent(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
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
-
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.Builderavoiding the need to create one manually viaContent.builder().When the
Consumercompletes,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:
-