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.Builderhits(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.Builderstatus(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, responseMetadataMethods 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, sdkFieldNameToField, sdkFieldsMethods 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.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:
-
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.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:
-
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.
-