@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetrieveResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
RetrieveResult() |
Modifier and Type | Method and Description |
---|---|
RetrieveResult |
clone() |
boolean |
equals(Object obj) |
String |
getQueryId()
The identifier of query used for the search.
|
List<RetrieveResultItem> |
getResultItems()
The results of the retrieved relevant passages for the search.
|
int |
hashCode() |
void |
setQueryId(String queryId)
The identifier of query used for the search.
|
void |
setResultItems(Collection<RetrieveResultItem> resultItems)
The results of the retrieved relevant passages for the search.
|
String |
toString()
Returns a string representation of this object.
|
RetrieveResult |
withQueryId(String queryId)
The identifier of query used for the search.
|
RetrieveResult |
withResultItems(Collection<RetrieveResultItem> resultItems)
The results of the retrieved relevant passages for the search.
|
RetrieveResult |
withResultItems(RetrieveResultItem... resultItems)
The results of the retrieved relevant passages for the search.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setQueryId(String queryId)
The identifier of query used for the search. You also use QueryId
to identify the search when using
the Submitfeedback
API.
queryId
- The identifier of query used for the search. You also use QueryId
to identify the search when
using the Submitfeedback
API.public String getQueryId()
The identifier of query used for the search. You also use QueryId
to identify the search when using
the Submitfeedback
API.
QueryId
to identify the search
when using the Submitfeedback
API.public RetrieveResult withQueryId(String queryId)
The identifier of query used for the search. You also use QueryId
to identify the search when using
the Submitfeedback
API.
queryId
- The identifier of query used for the search. You also use QueryId
to identify the search when
using the Submitfeedback
API.public List<RetrieveResultItem> getResultItems()
The results of the retrieved relevant passages for the search.
public void setResultItems(Collection<RetrieveResultItem> resultItems)
The results of the retrieved relevant passages for the search.
resultItems
- The results of the retrieved relevant passages for the search.public RetrieveResult withResultItems(RetrieveResultItem... resultItems)
The results of the retrieved relevant passages for the search.
NOTE: This method appends the values to the existing list (if any). Use
setResultItems(java.util.Collection)
or withResultItems(java.util.Collection)
if you want to
override the existing values.
resultItems
- The results of the retrieved relevant passages for the search.public RetrieveResult withResultItems(Collection<RetrieveResultItem> resultItems)
The results of the retrieved relevant passages for the search.
resultItems
- The results of the retrieved relevant passages for the search.public String toString()
toString
in class Object
Object.toString()
public RetrieveResult clone()