public class PersonCollectionRequest extends BaseCollectionRequest<PersonCollectionResponse,IPersonCollectionPage> implements IPersonCollectionRequest
| Constructor and Description |
|---|
PersonCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Person
|
| Modifier and Type | Method and Description |
|---|---|
IPersonCollectionPage |
buildFromResponse(PersonCollectionResponse response) |
IPersonCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IPersonCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
IPersonCollectionPage |
get() |
void |
get(ICallback<? super IPersonCollectionPage> callback) |
IPersonCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Person |
post(Person newPerson) |
void |
post(Person newPerson,
ICallback<? super Person> callback) |
IPersonCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IPersonCollectionRequest |
skip(int value)
Sets the skip value for the request
|
IPersonCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
IPersonCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic PersonCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<? super IPersonCollectionPage> callback)
get in interface IPersonCollectionRequestpublic IPersonCollectionPage get() throws ClientException
get in interface IPersonCollectionRequestClientExceptionpublic void post(Person newPerson, ICallback<? super Person> callback)
post in interface IPersonCollectionRequestpublic Person post(Person newPerson) throws ClientException
post in interface IPersonCollectionRequestClientExceptionpublic IPersonCollectionRequest expand(java.lang.String value)
expand in interface IPersonCollectionRequestvalue - the expand clausepublic IPersonCollectionRequest filter(java.lang.String value)
filter in interface IPersonCollectionRequestvalue - the filter clausepublic IPersonCollectionRequest orderBy(java.lang.String value)
orderBy in interface IPersonCollectionRequestvalue - the order by clausepublic IPersonCollectionRequest select(java.lang.String value)
select in interface IPersonCollectionRequestvalue - the select clausepublic IPersonCollectionRequest top(int value)
top in interface IPersonCollectionRequestvalue - the max number of items to returnpublic IPersonCollectionRequest skip(int value)
skip in interface IPersonCollectionRequestvalue - of the number of items to skippublic IPersonCollectionRequest skipToken(java.lang.String skipToken)
skipToken in interface IPersonCollectionRequestskipToken - - Token for paginationpublic IPersonCollectionPage buildFromResponse(PersonCollectionResponse response)