Interface RetrievedReference.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RetrievedReference.Builder,,RetrievedReference> SdkBuilder<RetrievedReference.Builder,,RetrievedReference> SdkPojo
- Enclosing class:
RetrievedReference
public static interface RetrievedReference.Builder
extends SdkPojo, CopyableBuilder<RetrievedReference.Builder,RetrievedReference>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RetrievedReference.Buildercontent(Consumer<RetrievalResultContent.Builder> content) Contains the cited text from the data source.content(RetrievalResultContent content) Contains the cited text from the data source.default RetrievedReference.Builderlocation(Consumer<RetrievalResultLocation.Builder> location) Contains information about the location of the data source.location(RetrievalResultLocation location) Contains information about the location of the data source.Contains metadata attributes and their values for the file in the data source.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
-
content
Contains the cited text from the data source.
- Parameters:
content- Contains the cited text from the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
Contains the cited text from the data source.
This is a convenience method that creates an instance of theRetrievalResultContent.Builderavoiding the need to create one manually viaRetrievalResultContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(RetrievalResultContent).- Parameters:
content- a consumer that will call methods onRetrievalResultContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
location
Contains information about the location of the data source.
- Parameters:
location- Contains information about the location of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
Contains information about the location of the data source.
This is a convenience method that creates an instance of theRetrievalResultLocation.Builderavoiding the need to create one manually viaRetrievalResultLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(RetrievalResultLocation).- Parameters:
location- a consumer that will call methods onRetrievalResultLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Contains metadata attributes and their values for the file in the data source. For more information, see Metadata and filtering.
- Parameters:
metadata- Contains metadata attributes and their values for the file in the data source. For more information, see Metadata and filtering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-