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
Modifier and TypeMethodDescriptionfacets
(Map<String, BucketInfo> facets) The requested facet information.default SearchResponse.Builder
hits
(Consumer<Hits.Builder> hits) The documents that match the search criteria.The documents that match the search criteria.stats
(Map<String, FieldStats> stats) The requested field statistics information.default SearchResponse.Builder
status
(Consumer<SearchStatus.Builder> status) The status information returned for the search request.status
(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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
The status information returned for the search request.
This is a convenience method that creates an instance of theSearchStatus.Builder
avoiding the need to create one manually viaSearchStatus.builder()
.When the
Consumer
completes,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:
-
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
The documents that match the search criteria.
This is a convenience method that creates an instance of theHits.Builder
avoiding the need to create one manually viaHits.builder()
.When the
Consumer
completes,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:
-
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
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.
-