public class SearchResponse extends Object implements Serializable
| Constructor and Description |
|---|
SearchResponse() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
Map<String,Object> |
getAdditionalProperties() |
AvailableData |
getAvailableData() |
Long |
getAvailableSources()
The number of sources we know of that are relevant to the search.
|
String |
getError()
An error message, explaining an error that prevented your search from being run.
|
Long |
getHttpStatusCode()
The HTTP status code of the response.
|
String |
getMatchRequirements()
The canonical way to express the match requirement you’ve sent.
|
Person |
getPerson() |
Long |
getPersonsCount()
The number of persons returned in this API response.
|
List<Person> |
getPossiblePersons()
An array of person objects containing possible matches.
|
Person |
getQuery() |
String |
getSearchId()
An internal ID which identifies the search on our systems.
|
List<Source> |
getSources()
An array of source objects, in case you need to see where the data came from.
|
Boolean |
getTopMatch()
Whether top match was set in request.
|
Long |
getVisibleSources()
The number of sources returned in the sources array (if show_sources is not false).
|
List<String> |
getWarnings()
An array of warning strings.
|
int |
hashCode() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setAvailableData(AvailableData availableData) |
void |
setAvailableSources(Long availableSources)
The number of sources we know of that are relevant to the search.
|
void |
setError(String error)
An error message, explaining an error that prevented your search from being run.
|
void |
setHttpStatusCode(Long httpStatusCode)
The HTTP status code of the response.
|
void |
setMatchRequirements(String matchRequirements)
The canonical way to express the match requirement you’ve sent.
|
void |
setPerson(Person person) |
void |
setPersonsCount(Long personsCount)
The number of persons returned in this API response.
|
void |
setPossiblePersons(List<Person> possiblePersons)
An array of person objects containing possible matches.
|
void |
setQuery(Person query) |
void |
setSearchId(String searchId)
An internal ID which identifies the search on our systems.
|
void |
setSources(List<Source> sources)
An array of source objects, in case you need to see where the data came from.
|
void |
setTopMatch(Boolean topMatch)
Whether top match was set in request.
|
void |
setVisibleSources(Long visibleSources)
The number of sources returned in the sources array (if show_sources is not false).
|
void |
setWarnings(List<String> warnings)
An array of warning strings.
|
String |
toString() |
SearchResponse |
withAdditionalProperty(String name,
Object value) |
SearchResponse |
withAvailableData(AvailableData availableData) |
SearchResponse |
withAvailableSources(Long availableSources) |
SearchResponse |
withError(String error) |
SearchResponse |
withHttpStatusCode(Long httpStatusCode) |
SearchResponse |
withMatchRequirements(String matchRequirements) |
SearchResponse |
withPerson(Person person) |
SearchResponse |
withPersonsCount(Long personsCount) |
SearchResponse |
withPossiblePersons(List<Person> possiblePersons) |
SearchResponse |
withQuery(Person query) |
SearchResponse |
withSearchId(String searchId) |
SearchResponse |
withSources(List<Source> sources) |
SearchResponse |
withTopMatch(Boolean topMatch) |
SearchResponse |
withVisibleSources(Long visibleSources) |
SearchResponse |
withWarnings(List<String> warnings) |
public Long getHttpStatusCode()
public void setHttpStatusCode(Long httpStatusCode)
public SearchResponse withHttpStatusCode(Long httpStatusCode)
public Long getVisibleSources()
public void setVisibleSources(Long visibleSources)
public SearchResponse withVisibleSources(Long visibleSources)
public Long getAvailableSources()
public void setAvailableSources(Long availableSources)
public SearchResponse withAvailableSources(Long availableSources)
public Long getPersonsCount()
public void setPersonsCount(Long personsCount)
public SearchResponse withPersonsCount(Long personsCount)
public String getSearchId()
public void setSearchId(String searchId)
public SearchResponse withSearchId(String searchId)
public Boolean getTopMatch()
public void setTopMatch(Boolean topMatch)
public SearchResponse withTopMatch(Boolean topMatch)
public Person getQuery()
public void setQuery(Person query)
public SearchResponse withQuery(Person query)
public String getMatchRequirements()
public void setMatchRequirements(String matchRequirements)
public SearchResponse withMatchRequirements(String matchRequirements)
public AvailableData getAvailableData()
public void setAvailableData(AvailableData availableData)
public SearchResponse withAvailableData(AvailableData availableData)
public String getError()
public void setError(String error)
public SearchResponse withError(String error)
public SearchResponse withWarnings(List<String> warnings)
public Person getPerson()
public void setPerson(Person person)
public SearchResponse withPerson(Person person)
public List<Person> getPossiblePersons()
public void setPossiblePersons(List<Person> possiblePersons)
public SearchResponse withPossiblePersons(List<Person> possiblePersons)
public List<Source> getSources()
public void setSources(List<Source> sources)
public SearchResponse withSources(List<Source> sources)
public SearchResponse withAdditionalProperty(String name, Object value)
Copyright © 2020 The Apache Software Foundation. All rights reserved.