@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Hits extends Object implements Serializable, Cloneable, StructuredPojo
The collection of documents that match the search request.
Constructor and Description |
---|
Hits() |
Modifier and Type | Method and Description |
---|---|
Hits |
clone() |
boolean |
equals(Object obj) |
String |
getCursor()
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large
result set.
|
Long |
getFound()
The total number of documents that match the search request.
|
List<Hit> |
getHit()
A document that matches the search request.
|
Long |
getStart()
The index of the first matching document.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCursor(String cursor)
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large
result set.
|
void |
setFound(Long found)
The total number of documents that match the search request.
|
void |
setHit(Collection<Hit> hit)
A document that matches the search request.
|
void |
setStart(Long start)
The index of the first matching document.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Hits |
withCursor(String cursor)
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large
result set.
|
Hits |
withFound(Long found)
The total number of documents that match the search request.
|
Hits |
withHit(Collection<Hit> hit)
A document that matches the search request.
|
Hits |
withHit(Hit... hit)
A document that matches the search request.
|
Hits |
withStart(Long start)
The index of the first matching document.
|
public void setFound(Long found)
The total number of documents that match the search request.
found
- The total number of documents that match the search request.public Long getFound()
The total number of documents that match the search request.
public Hits withFound(Long found)
The total number of documents that match the search request.
found
- The total number of documents that match the search request.public void setStart(Long start)
The index of the first matching document.
start
- The index of the first matching document.public Long getStart()
The index of the first matching document.
public Hits withStart(Long start)
The index of the first matching document.
start
- The index of the first matching document.public void setCursor(String cursor)
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
cursor
- A cursor that can be used to retrieve the next set of matching documents when you want to page through a
large result set.public String getCursor()
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
public Hits withCursor(String cursor)
A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.
cursor
- A cursor that can be used to retrieve the next set of matching documents when you want to page through a
large result set.public List<Hit> getHit()
A document that matches the search request.
public void setHit(Collection<Hit> hit)
A document that matches the search request.
hit
- A document that matches the search request.public Hits withHit(Hit... hit)
A document that matches the search request.
NOTE: This method appends the values to the existing list (if any). Use
setHit(java.util.Collection)
or withHit(java.util.Collection)
if you want to override the
existing values.
hit
- A document that matches the search request.public Hits withHit(Collection<Hit> hit)
A document that matches the search request.
hit
- A document that matches the search request.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.