Package io.constructor.client
Class NaturalLanguageSearchRequest
java.lang.Object
io.constructor.client.NaturalLanguageSearchRequest
Constructor.io Natural Language Search Request
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a natural language search request -
Method Summary
Modifier and TypeMethodDescriptionintgetPage()getQuery()intvoidsetPage(int page) voidvoidsetResultsPerPage(int resultsPerPage) voidsetSection(String section)
-
Constructor Details
-
NaturalLanguageSearchRequest
Creates a natural language search request- Parameters:
query- the term to return natural language search results for- Throws:
IllegalArgumentException
-
-
Method Details
-
setQuery
- Parameters:
query- the query to set
-
getQuery
- Returns:
- the query
-
getSection
- Returns:
- the section
-
setSection
- Parameters:
section- the section to set
-
getPage
public int getPage()- Returns:
- the page
-
setPage
public void setPage(int page) - Parameters:
page- the page to set
-
getResultsPerPage
public int getResultsPerPage()- Returns:
- the resultsPerPage
-
setResultsPerPage
public void setResultsPerPage(int resultsPerPage) - Parameters:
resultsPerPage- the resultsPerPage to set
-