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, withHttpMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
public 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 IEventCollectionRequest
public IEventCollectionPage get() throws ClientException
get
in interface IEventCollectionRequest
ClientException
public void post(Event newEvent, ICallback<? super Event> callback)
post
in interface IEventCollectionRequest
public Event post(Event newEvent) throws ClientException
post
in interface IEventCollectionRequest
ClientException
public IEventCollectionRequest expand(java.lang.String value)
expand
in interface IEventCollectionRequest
value
- the expand clausepublic IEventCollectionRequest filter(java.lang.String value)
filter
in interface IEventCollectionRequest
value
- the filter clausepublic IEventCollectionRequest orderBy(java.lang.String value)
orderBy
in interface IEventCollectionRequest
value
- the order by clausepublic IEventCollectionRequest select(java.lang.String value)
select
in interface IEventCollectionRequest
value
- the select clausepublic IEventCollectionRequest top(int value)
top
in interface IEventCollectionRequest
value
- the max number of items to returnpublic IEventCollectionRequest skip(int value)
skip
in interface IEventCollectionRequest
value
- of the number of items to skippublic IEventCollectionRequest skipToken(java.lang.String skipToken)
skipToken
in interface IEventCollectionRequest
skipToken
- - Token for paginationpublic IEventCollectionPage buildFromResponse(EventCollectionResponse response)