Interface GeneratedResponsePart.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GeneratedResponsePart.Builder,,GeneratedResponsePart> SdkBuilder<GeneratedResponsePart.Builder,,GeneratedResponsePart> SdkPojo
- Enclosing class:
GeneratedResponsePart
public static interface GeneratedResponsePart.Builder
extends SdkPojo, CopyableBuilder<GeneratedResponsePart.Builder,GeneratedResponsePart>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GeneratedResponsePart.BuildertextResponsePart(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaTextResponsePart.builder().When the
Consumercompletes,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:
-