Interface Hits.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Hits.Builder,Hits>,SdkBuilder<Hits.Builder,Hits>,SdkPojo
- Enclosing class:
- Hits
public static interface Hits.Builder extends SdkPojo, CopyableBuilder<Hits.Builder,Hits>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Hits.Buildercursor(String cursor)A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.Hits.Builderfound(Long found)The total number of documents that match the search request.Hits.Builderhit(Collection<Hit> hit)A document that matches the search request.Hits.Builderhit(Consumer<Hit.Builder>... hit)A document that matches the search request.Hits.Builderhit(Hit... hit)A document that matches the search request.Hits.Builderstart(Long start)The index of the first matching document.-
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 Detail
-
found
Hits.Builder found(Long found)
The total number of documents that match the search request.
- Parameters:
found- The total number of documents that match the search request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
start
Hits.Builder start(Long start)
The index of the first matching document.
- Parameters:
start- The index of the first matching document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cursor
Hits.Builder cursor(String cursor)
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
- Parameters:
cursor- A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hit
Hits.Builder hit(Collection<Hit> hit)
A document that matches the search request.
- Parameters:
hit- A document that matches the search request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hit
Hits.Builder hit(Hit... hit)
A document that matches the search request.
- Parameters:
hit- A document that matches the search request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hit
Hits.Builder hit(Consumer<Hit.Builder>... hit)
A document that matches the search request.
This is a convenience method that creates an instance of theHit.Builderavoiding the need to create one manually viaHit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#hit(List.) - Parameters:
hit- a consumer that will call methods onHit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#hit(java.util.Collection)
-
-