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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GeneratedResponsePart.BuildertextResponsePart(Consumer<TextResponsePart.Builder> textResponsePart)Contains metadata about a textual part of the generated response that is accompanied by a citation.GeneratedResponsePart.BuildertextResponsePart(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, sdkFields
-
-
-
-
Method Detail
-
textResponsePart
GeneratedResponsePart.Builder textResponsePart(TextResponsePart 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:
textResponsePart(TextResponsePart)
-
-