Interface GeneratedResponsePart.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GeneratedResponsePart.Builder,
,GeneratedResponsePart> SdkBuilder<GeneratedResponsePart.Builder,
,GeneratedResponsePart> SdkPojo
- Enclosing class:
GeneratedResponsePart
@Mutable
@NotThreadSafe
public static interface GeneratedResponsePart.Builder
extends SdkPojo, CopyableBuilder<GeneratedResponsePart.Builder,GeneratedResponsePart>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GeneratedResponsePart.Builder
textResponsePart
(Consumer<TextResponsePart.Builder> textResponsePart) Contains metadata about a textual part of the generated response that is accompanied by a citation.textResponsePart
(TextResponsePart textResponsePart) Contains metadata about a textual part of the generated response that is accompanied by a citation.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
-
textResponsePart
Contains metadata about a textual part of the generated response that is accompanied by a citation.
- Parameters:
textResponsePart
- Contains metadata about a textual part of the generated response that is accompanied by a citation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textResponsePart
default GeneratedResponsePart.Builder textResponsePart(Consumer<TextResponsePart.Builder> textResponsePart) Contains metadata about a textual part of the generated response that is accompanied by a citation.
This is a convenience method that creates an instance of theTextResponsePart.Builder
avoiding the need to create one manually viaTextResponsePart.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totextResponsePart(TextResponsePart)
.- Parameters:
textResponsePart
- a consumer that will call methods onTextResponsePart.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-