Interface ResultData.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResultData.Builder,ResultData>,SdkBuilder<ResultData.Builder,ResultData>,SdkPojo
- Enclosing class:
- ResultData
public static interface ResultData.Builder extends SdkPojo, CopyableBuilder<ResultData.Builder,ResultData>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResultData.Builderdocument(Consumer<Document.Builder> document)The document.ResultData.Builderdocument(Document document)The document.ResultData.BuilderrelevanceScore(Double relevanceScore)The relevance score of the results.ResultData.BuilderresultId(String resultId)The identifier of the result data.-
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
-
document
ResultData.Builder document(Document document)
The document.
- Parameters:
document- The document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
document
default ResultData.Builder document(Consumer<Document.Builder> document)
The document.
This is a convenience method that creates an instance of theDocument.Builderavoiding the need to create one manually viaDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocument(Document).- Parameters:
document- a consumer that will call methods onDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
document(Document)
-
relevanceScore
ResultData.Builder relevanceScore(Double relevanceScore)
The relevance score of the results.
- Parameters:
relevanceScore- The relevance score of the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultId
ResultData.Builder resultId(String resultId)
The identifier of the result data.
- Parameters:
resultId- The identifier of the result data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-