@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 total number of items found by the search; however, you can only retrieve up to 100 items.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 final boolean hasResultItems()
public final 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 final boolean hasFacetResults()
public final 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 final Integer totalNumberOfResults()
The total number of items found by the search; however, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
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 final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.