@Generated(value="software.amazon.awssdk:codegen") public final class Hit extends Object implements StructuredPojo, ToCopyableBuilder<Hit.Builder,Hit>
Information about a document that matches the search request.
Modifier and Type | Class and Description |
---|---|
static interface |
Hit.Builder |
Modifier and Type | Method and Description |
---|---|
static Hit.Builder |
builder() |
boolean |
equals(Object obj) |
Map<String,String> |
exprs()
The expressions returned from a document that matches the search request.
|
Map<String,List<String>> |
fields()
The fields returned from a document that matches the search request.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<String,String> |
highlights()
The highlights returned from a document that matches the search request.
|
String |
id()
The document ID of a document that matches the search request.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends Hit.Builder> |
serializableBuilderClass() |
Hit.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The document ID of a document that matches the search request.
public Map<String,List<String>> fields()
The fields returned from a document that matches the search request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> exprs()
The expressions returned from a document that matches the search request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> highlights()
The highlights returned from a document that matches the search request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Hit.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Hit.Builder,Hit>
public static Hit.Builder builder()
public static Class<? extends Hit.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.