Interface SearchResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudSearchDomainResponse.Builder,CopyableBuilder<SearchResponse.Builder,SearchResponse>,SdkBuilder<SearchResponse.Builder,SearchResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- SearchResponse
public static interface SearchResponse.Builder extends CloudSearchDomainResponse.Builder, SdkPojo, CopyableBuilder<SearchResponse.Builder,SearchResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SearchResponse.Builderfacets(Map<String,BucketInfo> facets)The requested facet information.default SearchResponse.Builderhits(Consumer<Hits.Builder> hits)The documents that match the search criteria.SearchResponse.Builderhits(Hits hits)The documents that match the search criteria.SearchResponse.Builderstats(Map<String,FieldStats> stats)The requested field statistics information.default SearchResponse.Builderstatus(Consumer<SearchStatus.Builder> status)The status information returned for the search request.SearchResponse.Builderstatus(SearchStatus status)The status information returned for the search request.-
Methods inherited from interface software.amazon.awssdk.services.cloudsearchdomain.model.CloudSearchDomainResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
status
SearchResponse.Builder status(SearchStatus status)
The status information returned for the search request.
- Parameters:
status- The status information returned for the search request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default SearchResponse.Builder status(Consumer<SearchStatus.Builder> status)
The status information returned for the search request.
This is a convenience method that creates an instance of theSearchStatus.Builderavoiding the need to create one manually viaSearchStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(SearchStatus).- Parameters:
status- a consumer that will call methods onSearchStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(SearchStatus)
-
hits
SearchResponse.Builder hits(Hits hits)
The documents that match the search criteria.
- Parameters:
hits- The documents that match the search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hits
default SearchResponse.Builder hits(Consumer<Hits.Builder> hits)
The documents that match the search criteria.
This is a convenience method that creates an instance of theHits.Builderavoiding the need to create one manually viaHits.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohits(Hits).- Parameters:
hits- a consumer that will call methods onHits.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
hits(Hits)
-
facets
SearchResponse.Builder facets(Map<String,BucketInfo> facets)
The requested facet information.
- Parameters:
facets- The requested facet information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stats
SearchResponse.Builder stats(Map<String,FieldStats> stats)
The requested field statistics information.
- Parameters:
stats- The requested field statistics information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-