@Generated(value="software.amazon.awssdk:codegen") public final class QueryResponse extends KendraResponse implements ToCopyableBuilder<QueryResponse.Builder,QueryResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
QueryResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static QueryResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<FacetResult> |
facetResults()
Contains the facet results.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFacetResults()
Returns true if the FacetResults property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasResultItems()
Returns true if the ResultItems property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
queryId()
The unique identifier for the search.
|
List<QueryResultItem> |
resultItems()
The results of the search.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends QueryResponse.Builder> |
serializableBuilderClass() |
QueryResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
totalNumberOfResults()
The number of items returned by the search.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String queryId()
The unique identifier for the search. You use QueryId to identify the search when using the feedback
API.
QueryId to identify the search when using the
feedback API.public boolean hasResultItems()
public List<QueryResultItem> resultItems()
The results of the search.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResultItems() to see if a value was sent in this field.
public boolean hasFacetResults()
public List<FacetResult> facetResults()
Contains the facet results. A FacetResult contains the counts for each attribute key that was
specified in the Facets input parameter.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFacetResults() to see if a value was sent in this field.
FacetResult contains the counts for each attribute key that
was specified in the Facets input parameter.public Integer totalNumberOfResults()
The number of items returned by the search. Use this to determine when you have requested the last set of results.
public QueryResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<QueryResponse.Builder,QueryResponse>toBuilder in class AwsResponsepublic static QueryResponse.Builder builder()
public static Class<? extends QueryResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsResponsepublic boolean equals(Object obj)
equals in class AwsResponsepublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2020. All rights reserved.