public class EventCollectionRequest extends BaseCollectionRequest<EventCollectionResponse,IEventCollectionPage> implements IEventCollectionRequest
| Constructor and Description |
|---|
EventCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Event
|
| Modifier and Type | Method and Description |
|---|---|
IEventCollectionPage |
buildFromResponse(EventCollectionResponse response) |
IEventCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IEventCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
IEventCollectionPage |
get() |
void |
get(ICallback<? super IEventCollectionPage> callback) |
IEventCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Event |
post(Event newEvent) |
void |
post(Event newEvent,
ICallback<? super Event> callback) |
IEventCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IEventCollectionRequest |
skip(int value)
Sets the skip value for the request
|
IEventCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
IEventCollectionRequest |
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 EventCollectionRequest(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 IEventCollectionPage> callback)
get in interface IEventCollectionRequestpublic IEventCollectionPage get() throws ClientException
get in interface IEventCollectionRequestClientExceptionpublic void post(Event newEvent, ICallback<? super Event> callback)
post in interface IEventCollectionRequestpublic Event post(Event newEvent) throws ClientException
post in interface IEventCollectionRequestClientExceptionpublic IEventCollectionRequest expand(java.lang.String value)
expand in interface IEventCollectionRequestvalue - the expand clausepublic IEventCollectionRequest filter(java.lang.String value)
filter in interface IEventCollectionRequestvalue - the filter clausepublic IEventCollectionRequest orderBy(java.lang.String value)
orderBy in interface IEventCollectionRequestvalue - the order by clausepublic IEventCollectionRequest select(java.lang.String value)
select in interface IEventCollectionRequestvalue - the select clausepublic IEventCollectionRequest top(int value)
top in interface IEventCollectionRequestvalue - the max number of items to returnpublic IEventCollectionRequest skip(int value)
skip in interface IEventCollectionRequestvalue - of the number of items to skippublic IEventCollectionRequest skipToken(java.lang.String skipToken)
skipToken in interface IEventCollectionRequestskipToken - - Token for paginationpublic IEventCollectionPage buildFromResponse(EventCollectionResponse response)